Skip to content

Commit

Permalink
Fix: Local model use (#38)
Browse files Browse the repository at this point in the history
This PR addresses a regression wherein a local model cannot be used if
the OpenAI API key is not defined.
  • Loading branch information
tkarabatic authored Mar 4, 2024
1 parent f27856b commit db39819
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion doc_comments_ai/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def run():
elif args.ollama_model:
llm_wrapper = llm.LLM(ollama=(args.ollama_base_url, args.ollama_model))
else:
utils.is_openai_api_key_available()
llm_wrapper = llm.LLM(local_model=args.local_model)

generated_doc_comments = {}
Expand Down

0 comments on commit db39819

Please sign in to comment.