Comments (7)
This is great actually, I'd say this is a clean way to offer support for multiple models via litellm in autogen.
We can guide users to do this by updating the documentation to show how to:
- Install and run an OAI compliant endpoint (with support for 100s of models) via litellm
- Show how AutoGen can consume these endpoints seamlessly via the oai_config_list
from autogen import AssistantAgent, UserProxyAgent, oai
config_list=[
{
"model": "palm/text-bison",
"api_base": "http://localhost:8000/v1", #litellm compatible endpoint
"api_type": "open_ai",
"api_key": "NULL", # just a placeholder
}
]
response = oai.Completion.create(config_list=config_list, prompt="Hi")
print(response) # works fine
assistant = AssistantAgent("assistant")
user_proxy = UserProxyAgent("user_proxy")
user_proxy.initiate_chat(assistant, message="Plot a chart of META and TESLA stock price change YTD.", config_list=config_list)
# fails with the error: openai.error.AuthenticationError: No API key provided.
There is a chance I may have missed something here, happy to get your thoughts
from autogen.
Hey @victordibia thank you for this incredible tutorial. I added it to our docs and gave you credit for it:
https://docs.litellm.ai/docs/proxy_server#tutorial-use-with-aiderautogencontinue-dev
from autogen.
@victordibia thanks for taking a look at litelm
Yes the endpoint is OpenAI compatible
What do you want to use it for ? (I want to make sure we can support it well)
from autogen.
related to #46
from autogen.
from autogen.
made a PR for this: #95
from autogen.
Quick question @ishaan-jaff.
I have taken a look at litelllm and the list of models supported in the python api is very impressive!
I also see that you can serve any model over a web endpoint.
litellm --model <model_name>
Can you confirm if this end point is OpenAI api compatible, similar to something like what fastchat //vllm provides?
This could be a clean way broaden the list of supported models.
from autogen.
Related Issues (20)
- Update documentation to point to new docker setup HOT 3
- [Feature Request]: allow silent=True while initiating a group chat HOT 1
- [Feature Request]: Using registered functions in code execution, useful for non-openai models. HOT 13
- [Bug]: API version is not optional HOT 2
- [Bug]: Couldn't use Azure openai with autogenstudio HOT 8
- [Feature Request]: Render example notebooks in documentation site HOT 3
- [Bug]: Unable to see the workflow HOT 4
- [Issue]: Update AutoGen Studio Readme to invite contributions/specify dev contributions HOT 2
- [AutoGen Studio] Add database versioning to manage schema compatibility HOT 1
- [P2] Stream messages from agents to UI as they are generated
- [Bug]: After pulish workflow to gallery, it only shows sccuess, but the website no other things showing HOT 4
- [Bug]: windows could work, but for linux remote use , it stuck at prompt process HOT 8
- [AutoGen Studio]: I have installed AutoGen Studio on Windows machine, but samples are not working HOT 8
- [Feature Request]: Documentation about system design
- [Feature Request]: Add a default ChatGPT workflow HOT 3
- [Issue]: How to get the output from autogen Agent? HOT 2
- [Feature Request]: Autogen Studio unable to change human input mode HOT 3
- [Feature Request]: Changes made to the llm models in the "Models" tab to carry over everywhere
- [Feature Request]: Re-arrange items via drag-n-drop and Re-name playground chats
- [Bug]: Inability to alter the default group chat workflow in Studio HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autogen.