Skip to content

Inserts dummy api key if missing #808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

CyanideByte
Copy link
Contributor

@CyanideByte CyanideByte commented Dec 3, 2023

Describe the changes you have made:

Inserts dummy api key if missing (fixes python scripts accessing self hosted solutions crashing without an api key)

Reference any relevant issue (Fixes #000)

https://discord.com/channels/1146610656779440188/1180576022635237417

  • I have performed a self-review of my code:

I have tested the code on the following OS:

  • Windows
  • MacOS
  • Linux

AI Language Model (if applicable)

  • GPT4
  • GPT3
  • Llama 7B
  • Llama 13B
  • Llama 34B
  • Huggingface model (Please specify which one)

@CyanideByte CyanideByte changed the title Inserts dummy api key if missing for python scripts using local Inserts dummy api key if missing Dec 3, 2023
@KillianLucas
Copy link
Collaborator

Thanks for fixing this @CyanideByte! I'll merge but will play with fixing this closer to the problem for better maintainability. I feel like this is a problem with LiteLLM, so the solution should probably insert a dummy key right before we send it to LiteLLM.

@KillianLucas KillianLucas merged commit 6159d2d into openinterpreter:main Dec 14, 2023
@CyanideByte CyanideByte deleted the local-fixes branch December 21, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants