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

AI openai client configuration #4271

Closed
jamiehodge opened this issue Jan 16, 2025 · 1 comment · Fixed by #4316
Closed

AI openai client configuration #4271

jamiehodge opened this issue Jan 16, 2025 · 1 comment · Fixed by #4316
Assignees
Labels
enhancement New feature or request

Comments

@jamiehodge
Copy link
Contributor

What is the problem this feature would solve?

In order to support proxying requests to openai, allow configuration of client url and possibly make the apiToken optional (as it may be handled by the proxy).

https://github.com/Effect-TS/effect/blob/main/packages/ai/openai/src/OpenAiClient.ts#L67-L68

What is the feature you are proposing to solve the problem?

  • an additional config var for url, with a fallback to the current value
  • making the apiToken and authorisation header optional

What alternatives have you considered?

No response

@jamiehodge jamiehodge added the enhancement New feature or request label Jan 16, 2025
@IMax153 IMax153 self-assigned this Jan 21, 2025
@mysticfall
Copy link

Thanks much! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants