(mainModel: string)
| 354 | }; |
| 355 | |
| 356 | export function getSecondaryModel(mainModel: string): string { |
| 357 | if (mainModel in baseSecondaryModelMapping) { |
| 358 | // @ts-ignore |
| 359 | return baseSecondaryModelMapping[mainModel]; |
| 360 | } else if (isOSModel(mainModel)) { |
| 361 | // Use OS model as secondary if primary model is OS |
| 362 | return mainModel; |
| 363 | } else { |
| 364 | // Default for fine-tuned models |
| 365 | return "gpt-3.5-turbo-0125"; |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | export async function queryEmbedding( |
| 370 | textToEmbed: string | string[], |
no test coverage detected