Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuring and using Ollama models with Foyle: #43

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

jlewi
Copy link
Owner

@jlewi jlewi commented Apr 9, 2024

  • Add 'AgentConfig' struct to 'config' package with a 'Model' field for specifying the model to use for completions
  • Set default configuration for the 'AgentConfig' model to 'openai.GPT3Dot5Turbo0125'
  • Update 'agent' package to handle missing AgentConfig in configuration and log an error
  • Update 'oai' package to handle missing OpenAI configuration and custom BaseURL, and log BaseURL usage
  • Add 'DefaultModel' constant for Ollama model name to 'const.go' in 'config' package
  • Add a manual test for Ollama usage with 'Test_Ollama' in 'client_test.go' with a check for 'GITHUB_ACTIONS' environment variable
  • Add documentation for using Ollama with Foyle in 'docs/content/en/docs/ollama/_index.md'
  • Include steps for configuring Foyle to use Ollama's baseURL and model in the documentation

Copy link

netlify bot commented Apr 9, 2024

Deploy Preview for foyle ready!

Name Link
🔨 Latest commit eb77a03
🔍 Latest deploy log https://app.netlify.com/sites/foyle/deploys/6615cf69369f390008254d3a
😎 Deploy Preview https://deploy-preview-43--foyle.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jlewi jlewi merged commit 9a444be into main Apr 9, 2024
5 checks passed
@jlewi jlewi deleted the jeremy/ollama3 branch April 9, 2024 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant