Skip to content

Conversation

@anjoseb121
Copy link

  • Added authentication support to Ollama::Client:
    • New api_key parameter for simple Bearer token authentication
    • New headers parameter for custom HTTP headers
    • Authorization header automatically set when api_key is provided
    • Custom headers merged with default headers (can override defaults)
    • Support added to both direct client initialization and Client::Config
  • Updated Client::Config with headers and api_key attributes
  • Updated configure_with method to pass new authentication parameters
  • Added comprehensive tests for authentication features
  • Updated README with authentication examples and usage documentation

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