GetOpenAICompat fetches OpenAI compatibility entries.
()
| 307 | |
| 308 | // GetOpenAICompat fetches OpenAI compatibility entries. |
| 309 | func (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. |
| 314 | func (c *Client) getWrappedKeyList(path, key string) ([]map[string]any, error) { |
no test coverage detected