Skip to content

Commit

Permalink
openai config
Browse files Browse the repository at this point in the history
  • Loading branch information
BMS-geodev committed Jan 16, 2025
1 parent 02985ee commit e476731
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/samples/04.ai.c.actionMapping.lightBot/src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@

if config.OPENAI_KEY:
model = OpenAIModel(
OpenAIModelOptions(api_key=config.OPENAI_KEY, default_model="gpt-4o")
OpenAIModelOptions(api_key=config.OPENAI_KEY, default_model="gpt-4o",
logger=logger,
stream=True)
)
elif config.AZURE_OPENAI_KEY and config.AZURE_OPENAI_ENDPOINT:
model = OpenAIModel(
Expand Down

0 comments on commit e476731

Please sign in to comment.