MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / GetOpenAICompat

Method GetOpenAICompat

internal/tui/client.go:309–311  ·  view source on GitHub ↗

GetOpenAICompat fetches OpenAI compatibility entries.

()

Source from the content-addressed store, hash-verified

307
308// GetOpenAICompat fetches OpenAI compatibility entries.
309func (c *Client) GetOpenAICompat() ([]map[string]any, error) {
310 return c.getWrappedKeyList("/v0/management/openai-compatibility", "openai-compatibility")
311}
312
313// getWrappedKeyList fetches a wrapped list from the API.
314func (c *Client) getWrappedKeyList(path, key string) ([]map[string]any, error) {

Callers 1

fetchKeysMethod · 0.45

Calls 1

getWrappedKeyListMethod · 0.95

Tested by

no test coverage detected