gptscript-ai / gptscript

Build AI assistants that interact with your systems
https://gptscript.ai
Apache License 2.0
2.95k stars 260 forks source link

OPENAI_API_KEY is needed when we are using other models. #197

Closed sangee2004 closed 5 months ago

sangee2004 commented 5 months ago

Steps to reproduce the problem:

  1. Have ANTHROPIC_API_KEY env variable set ( dont have OPENAI_API_KEY set).

  2. Run gptscript using any anthropic model

User i asked to set OPENAI_API_KEY

gptscript --cache=false --default-model='claude-3-opus-20240229 from github.com/gptscript-ai/claude3-openai-shim' examples/bob.gpt
2024/03/28 15:41:20 OPENAI_API_KEY is not set. Please set the OPENAI_API_KEY environment variable

Expected Behavior: There should be no need to set OPENAI_API_KEY when using models other than OPENAI models.

sangee2004 commented 5 months ago

This is issue is addressed in latest builds.

Issue is not seen when testing with - gptscript version v0.0.0-dev-5c6ff70d-dirty