-
Notifications
You must be signed in to change notification settings - Fork 0
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
Costs of using external services via APIs in soilwise #6
Comments
Maybe we should move this issue to the governance repository? We may have to distinguish between:
As translation service I suggest to use the free-to-use for academia translate service provided by EU. But maybe we want to compare it to another (paid) service? @BerkvensNick what do you think? |
hi @pvgenuchten @robknapen I'm the maintainer of LiteLLM. I believe we can help with your budget limit problem. (please let me know if that's not the case. I apologize in advance if i'm wrong here)
How to use LiteLLM to create virtual keys with budgetsStep 1. Create a Config for LiteLLM proxyLiteLLM Requires a config with all your models defined - we can call this file Detailed docs on how to setup litellm config - here model_list:
- model_name: gpt-4
litellm_params:
model: openai/gpt-3.5-turbo
api_key: os.environ/OPENAI_API_KEY # reads key from os.environ('OPENAI_API_KEY') Step 2. Start litellm proxydocker run \
-v $(pwd)/litellm_config.yaml:/app/config.yaml \
-p 4000:4000 \
ghcr.io/berriai/litellm:main-latest \
--config /app/config.yaml --detailed_debug On success, the proxy will start running on Step 3. Create Virtual key with
|
Hi @ishaan-jaff , thanks for your feedback! I did find LiteLLM indeed. It looks great and it has good options for working with budgets. Which is what we would need so I have it already in consideration :) Most of the issue though is about who is going to provide the credit card and pay for the use of the (LLM/embedding model) services (during development and after), and get some clarity / awareness about this in the project. |
Some of the external services that we intend to use in the project (e.g. translation and language models) are not for free. Creation of an API key with a payment plan (credit card) is sometimes needed. How will this be arranged ?
The OpenAI LLMs are now accessed using a subscription owned by WEnR. Usage at the moment is still limited, but when it intensifies costs will start to add up (and services will stop working when budget limits are reached).
The text was updated successfully, but these errors were encountered: