-
Notifications
You must be signed in to change notification settings - Fork 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
Third-Party APIs #44
Comments
Check out this blog post on the Autogen documentation: https://microsoft.github.io/autogen/blog/2023/07/14/Local-LLMs. |
Thanks for getting back to me. The problem with the FastChat method is that you have to install the model on your computer and tell it where to find it when you start
|
Quick question @ahmedosman2001 , is your model endpoint an OpenAI compatible endpoint? See related discusison here where a fastcat chatglm model is configured to work with autogen from autogen import AssistantAgent, UserProxyAgent, oai
config_list=[
{
"model": "chatglm2-6b",
"api_base": "http://localhost:8000/v1",
"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. |
No, it is not OpenAI compliant, but this PR #95 solves my issue. Thank you all. |
Hello, could you please share an easy demo of your solution. I am faced with the problem as well. Thanks! |
* Updated to expand acceptable OpenAI API key format * Update to ChromaDB version required for RetrieveChatTest
I have an LLM API hosted on a remote server, and this is the way it functions: I send the query "Hello" using a fetch request to the API, and in response, I receive the message "Hello! How can I assist you today?". Is it possible to use AutoGen with APIs of this nature, where you submit a question and receive a response? This is example of response from the API
[{"role": "system", "content": "Knowledge cutoff: 2021-09-01 Current date: 2023-09-29"}, {"role": "user", "content": "Hello", "token": "7284194572548942422"}, {"role": "assistant", "content": "Hello! How can I assist you today?\n", "token": "7284194572548942422"}]
The text was updated successfully, but these errors were encountered: