Skip to content

Commit

Permalink
Fix bug missing model config in CLI devchat log
Browse files Browse the repository at this point in the history
  • Loading branch information
basicthinker committed May 21, 2023
1 parent d7bda72 commit 4613b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devchat/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def log(skip, max_count):
provider = config.get('provider')
recent_prompts = []
if provider == 'OpenAI':
openai_config = OpenAIChatConfig(**config['OpenAI'])
openai_config = OpenAIChatConfig(model=config['model'], **config['OpenAI'])
chat = OpenAIChat(openai_config)
store = Store(chat_dir, chat)
recent_prompts = store.select_recent(skip, skip + max_count)
Expand Down

0 comments on commit 4613b8a

Please sign in to comment.