Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

added support for any ollama model#2

Open
OriHizkiaho wants to merge 1 commit into
lguibr:main from
OriHizkiaho:support-any-model
Open

added support for any ollama model #2
OriHizkiaho wants to merge 1 commit into
lguibr:main from
OriHizkiaho:support-any-model

Conversation

@OriHizkiaho

@OriHizkiaho OriHizkiaho commented May 6, 2025

Copy link
Copy Markdown
Contributor
  • added option to provide LLM provider using command-line argument and environment variable
  • added option to provide LLM model using environment variable
  • supporting any Ollama model using match-case over the LLM provider
  • upgraded to python3.10 because of the match-case, can use if-else if python3.9 is desired

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Comment thread commitai/cli.py

case "ollama":
return cast(BaseChatModel, ChatOllama(model=model, temperature=0.7))
case _:

@OriHizkiaho OriHizkiaho May 6, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

click will raise an exception earlier so I don't know if this code is really necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /