-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add SambaNova models to Autogen #5051
Comments
You are welcome to contribute and create community packages. For non-openai, server-side LLM support, we want to take a very careful approach not to overextend and over stretch our ability to maintain them. |
@snova-rodrigom you can have a look at the existing extensions to get an idea of how to do this. |
Looks like SambaNova provides an OpenAI compatible api is that right? |
hello guys, thanks for your quick responses. @rysweet could you please reference to me to any documentation about existing documentations? and yes @jackgerrits SambaNova is OpenAI compatible :) |
Hi @snova-rodrigom , Documentation on model clients is here https://microsoft.github.io/autogen/dev/user-guide/core-user-guide/framework/model-clients.html You would typically need to set the model base_url, model and api-key following what you get from your provider - Samba Nova from autogen_core.models import UserMessage
from autogen_ext.models.openai import OpenAIChatCompletionClient
# Create an OpenAI model client.
model_client = OpenAIChatCompletionClient(
model="Meta-Llama-3.1-8B-Instruct",
# api_key="YOUR SAMBANOVA API KEY",
base_url="https://api.sambanova.ai/v1" ,
) |
Thank you @victordibia, I tried what you suggested, however I'm getting the following error
|
@rodrigo-92 as the error message indicates, please include from autogen_core.models import UserMessage
from autogen_ext.models.openai import OpenAIChatCompletionClient
# Create an OpenAI model client.
model_client = OpenAIChatCompletionClient(
model="Meta-Llama-3.1-8B-Instruct",
# api_key="YOUR SAMBANOVA API KEY",
base_url="https://api.sambanova.ai/v1" ,
model_info={"json_output": False, ...},
) |
thanks @ekzhu, it's working! Regarding documentation about existing extensions, could you point me to them? Is is possible to add SambaNova as an additional extension? I'm willing to cooperate with a PR since I work for them hehe. |
A community extension is the way to go here. Who other than yourself is the best person to maintain this 😄 You can look at: https://microsoft.github.io/autogen/stable/user-guide/extensions-user-guide/discover.html for existing extensions we have indexed, and https://microsoft.github.io/autogen/stable/user-guide/extensions-user-guide/create-your-own.html for creating your own extensions. |
awesome, thanks for the references. I'll check with team what would be the best approach. |
Using this issue to track the integration. |
What feature would you like to be added?
SambaNova Cloud LLM models
Why is this needed?
Integration implementation of SambaNova models to Autogen
The text was updated successfully, but these errors were encountered: