Open h4n0 opened 2 months ago
I got the same problem
Was able to resolve this by modifying src/options/ProviderSelect.tsx
function ProviderSelect() {
...
if (query.isLoading) {
return <Spinner />
}
// Added this
if (query.error) {
return <div>Error loading provider configurations.</div>
}
// Don't think you need this but added it to be safe
if (!query.data || !query.data.config) {
return <div>No provider configurations found.</div>
}
return <ConfigPanel config={query.data!.config} models={models} />
}
as well as src/config/index.ts
export async function getProviderConfigs(): Promise<ProviderConfigs> {
...
// Ensure result[configKey] is not undefined
if (!result[configKey]) {
result[configKey] = {}
}
result[configKey].apiKey = apiKey
return {
provider,
configs: {
[ProviderType.GPT3]: result[configKey],
},
}
}
Describe the bug I cloned the latest main branch and built it locally following the instructions. Chrome shows errors when I load the package. The error messages are:
Desktop (please complete the following information):