mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-08 08:00:10 +00:00
update api context
This commit is contained in:
@@ -143,6 +143,7 @@ export const infioDefaultModelInfo: ModelInfo = {
|
||||
let infioModelsCache: Record<string, ModelInfo> | null = null;
|
||||
|
||||
async function fetchInfioModels(apiKey?: string): Promise<Record<string, ModelInfo>> {
|
||||
console.log("fetchInfioModels apiKey", apiKey)
|
||||
if (infioModelsCache) {
|
||||
return infioModelsCache;
|
||||
}
|
||||
@@ -1606,6 +1607,7 @@ export const GetProviderModels = async (provider: ApiProvider, settings?: InfioS
|
||||
switch (provider) {
|
||||
case ApiProvider.Infio: {
|
||||
const apiKey = settings?.infioProvider?.apiKey
|
||||
console.log("apiKey", apiKey)
|
||||
return await fetchInfioModels(apiKey)
|
||||
}
|
||||
case ApiProvider.OpenRouter:
|
||||
@@ -1640,6 +1642,8 @@ export const GetProviderModelsWithSettings = async (provider: ApiProvider, setti
|
||||
switch (provider) {
|
||||
case ApiProvider.Infio: {
|
||||
const apiKey = settings?.infioProvider?.apiKey
|
||||
console.log("apiKey", apiKey)
|
||||
console.log("settings", settings)
|
||||
return await fetchInfioModels(apiKey)
|
||||
}
|
||||
case ApiProvider.OpenRouter:
|
||||
|
||||
Reference in New Issue
Block a user