Skip to content

Why does Reset ignore the api_base, api_key settings and give an error if OPENAI_API_KEY is missing? #1090

@ishibashi-futos

Description

@ishibashi-futos

Is your feature request related to a problem? Please describe.

Why does Reset ignore the api_base, api_key settings and give an error if OPENAI_API_KEY is missing?

Describe the solution you'd like

Retain the setting values of api_base and api_key after executing the %reset command.
Even if the %reset command is executed, the setting values of api_base and api_key are retained, thus preventing application stoppage due to missing OPENAI_API_KEY.

Describe alternatives you've considered

No response

Additional context

I am using llama-cpp-python to operate an open-interpreter with a local server. The command interpreter --api_base "http://localhost:8080/v1" --api_key "dummy" normally works without any issues. However, upon executing %reset, the application stops with an error indicating an incorrect API key, even though the correct settings were previously provided. This suggests that the %reset command does not retain the api_base and api_key settings, leading to a failure when the OPENAI_API_KEY is absent.

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions