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

Allow for client options + refactors #37

Merged
merged 7 commits into from
Oct 20, 2024
Merged

Conversation

sixlive
Copy link
Contributor

@sixlive sixlive commented Oct 20, 2024

Description

Allow for client options to be passed to the provider.

Prism::text()
  ->using(Provider::Ollama, 'qwen2.5')
  ->withClientOptions(['timeout' => '30'])
  ->generate()

With client options will accept any of Guzzle's request options.

@sixlive sixlive self-assigned this Oct 20, 2024
@sixlive sixlive marked this pull request as ready for review October 20, 2024 18:18
@sixlive sixlive merged commit 38367b5 into main Oct 20, 2024
6 checks passed
@sixlive sixlive deleted the provider-customizations branch October 20, 2024 18:47
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