Skip to content

Commit e7b2699

Browse files
authored
Merge pull request #1093 from lorenzejay/1076
does not prompt openapi key when running --api_base
2 parents f11f1e2 + ece9ca9 commit e7b2699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/terminal_interface/validate_llm_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def validate_llm_settings(interpreter):
2929

3030
# OpenAI
3131
if interpreter.llm.model in litellm.open_ai_chat_completion_models:
32-
if not os.environ.get("OPENAI_API_KEY") and not interpreter.llm.api_key:
32+
if not os.environ.get("OPENAI_API_KEY") and not interpreter.llm.api_key and not interpreter.llm.api_base:
3333
display_welcome_message_once()
3434

3535
display_markdown_message(

0 commit comments

Comments
 (0)