Update models-config.providers.ts
This commit is contained in:
parent
25d170fa4f
commit
1ca06f7590
@ -360,7 +360,7 @@ async function buildOllamaProvider(): Promise<ProviderConfig> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async function buildTogetherProvider(_apiKey?: string): Promise<ProviderConfig> {
|
function buildTogetherProvider(): ProviderConfig {
|
||||||
// Always use static catalog instead of dynamic discovery
|
// Always use static catalog instead of dynamic discovery
|
||||||
// This prevents timeout issues with the Together AI API
|
// This prevents timeout issues with the Together AI API
|
||||||
const models = TOGETHER_MODEL_CATALOG;
|
const models = TOGETHER_MODEL_CATALOG;
|
||||||
@ -439,7 +439,7 @@ export async function resolveImplicitProviders(params: {
|
|||||||
resolveApiKeyFromProfiles({ provider: "together", store: authStore });
|
resolveApiKeyFromProfiles({ provider: "together", store: authStore });
|
||||||
if (togetherKey) {
|
if (togetherKey) {
|
||||||
providers.together = {
|
providers.together = {
|
||||||
...(await buildTogetherProvider(togetherKey)),
|
...buildTogetherProvider(),
|
||||||
apiKey: togetherKey,
|
apiKey: togetherKey,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user