-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Support for proxies when talking to remote APIs by overriding the endpoint #518
Comments
Here are the ways the 3 main model providers support alternate endpoints. OpenAIFor OpenAI, the
AnthropicFor Anthropic, you can use the
source : https://github.com/anthropics/anthropic-sdk-python?tab=readme-ov-file#configuring-the-http-client GeminiFor Gemini, this is a bit more complicated.
Source = https://ai.google.dev/ |
See https://llm.datasette.io/en/stable/other-models.html#openai-compatible-models
- model_id: foobar
model_name: bazqux
api_base: https://mylitellm.example.org/v1/
api_key_name: mykey If your environment requires a tool to get api key you may use:
or define an alias:
|
Most serious companies block direct access to LLM apis (OpenAI, Anthropic, etc._ and mandate the use of an internal proxy.
Registering a new model by just specifying the key is not enough.
You should be able to provide the API key AND the end point to be used.
Library like
curl
. orrequests
are good examples in terms of support for proxies.The text was updated successfully, but these errors were encountered: