Skip to content

Conversation

philipAthanasopoulos
Copy link

This pull request introduces support for the new OllamaProvider in the chatbot application, enabling integration with Ollama's API. The changes include adding the provider implementation, updating configurations, and extending the application to support the new provider.

Integration of OllamaProvider:

  1. Provider Implementation:

    • Added a new OllamaProvider class to handle interactions with Ollama's API, supporting both direct and proxy modes. The implementation includes methods for sending messages, constructing request bodies, and handling streaming responses. (src/providers/OllamaProvider.ts)
  2. Configuration Types:

    • Added OllamaProviderConfig type to define configurations for both direct and proxy modes, including options for API keys, response formats, and custom message parsers. (src/types/provider-config/OllamaProviderConfig.ts)
    • Added OllamaProviderMessage type to standardize the message format for the provider. (src/types/provider-message/OllamaProviderMessage.ts)

Application Updates:

  1. Provider Integration in Application:
    • Included OllamaProvider in the list of available providers in src/App.tsx and src/index.tsx. (src/App.tsx) [1] [2] [3]
    • Configured the provider in the chatbot flow with parameters like baseUrl, mode, and debug settings. (src/App.tsx)

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