Skip to content

Commit

Permalink
Add new mode to require_api_key
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbickett committed Jan 24, 2024
1 parent 1fe0b1a commit f494f22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion operate/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def validation(self, model, voice_mode):
self.require_api_key(
"OPENAI_API_KEY",
"OpenAI API key",
model == "gpt-4" or voice_mode or model == "gpt-4-with-som",
model == "gpt-4"
or voice_mode
or model == "gpt-4-with-som"
or model == "gpt-4-with-ocr",
)
self.require_api_key(
"GOOGLE_API_KEY", "Google API key", model == "gemini-pro-vision"
Expand Down

0 comments on commit f494f22

Please sign in to comment.