Skip to content

Commit 9b4e584

Browse files
author
marwan37
committed
edit api_key access for OpenAI client
1 parent b65894b commit 9b4e584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

omni-reader/utils/model_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ModelConfig:
4545

4646
def get_openai_client():
4747
"""Get an OpenAI client with instructor integration."""
48-
openai_client = OpenAI(api_key="ollama")
48+
openai_client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
4949
return instructor.from_openai(openai_client)
5050

5151

0 commit comments

Comments
 (0)