( id: "openai-compatible" | "openai", )
| 236 | id, |
| 237 | ...options, |
| 238 | }); |
| 239 | |
| 240 | const createOpenAIProfile = ( |
| 241 | id: "openai-compatible" | "openai", |
| 242 | ): ProviderProfile => |
| 243 | createProviderProfile(id, { |
| 244 | authMode: "bearer", |
| 245 | modes: { |
| 246 | chat: { strategy: "openai-rest" }, |
| 247 | search: { strategy: "openai-rest" }, |
| 248 | image: { strategy: "openai-rest", supportsEdit: true }, |
| 249 | video: { strategy: "openai-rest", endpoint: "chat/completions" }, |
| 250 | }, |
| 251 | }); |
| 252 |
no test coverage detected