-
Notifications
You must be signed in to change notification settings - Fork 663
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
llm: Add Anthropic support #377
Conversation
The config goes like this: { "llm.api_type": "anthropic", "llm.api_base": "https://api.anthropic.com/v1/messages", "llm.api_key": "sk-ant-xxxxx", "llm.model": "claude-3-opus" } (cherry picked from commit 0d95d3a3c831735d10865344dbfd8aa22173f214) Signed-off-by: Panchajanya1999 <[email protected]>
@microsoft-github-policy-service agree |
hi @liqul can you have a look into this? It works perfectly. |
Could you address the test failure? |
Yeah, just added a commit to fix it. Still working on the md file. |
Yeah, this is the doc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not the way to fix the dependency issue. All LLMs must be optional, which means the user can choose not to install the libraries when they are using other LLM endpoints. Therefore, the way fixing the test issue is to move the import
line into the init of the endpoint service class. You can take a look at other implementations for reference.
Signed-off-by: Panchajanya1999 <[email protected]> (cherry picked from commit bd18ec9)
Signed-off-by: Panchajanya1999 <[email protected]>
Hi @liqul can you check now? |
The config goes like this:
{
"llm.api_type": "anthropic",
"llm.api_base": "https://api.anthropic.com/v1/messages",
"llm.api_key": "sk-ant-xxxxx",
"llm.model": "claude-3-opus"
}
(cherry picked from commit 0d95d3a3c831735d10865344dbfd8aa22173f214)
Signed-off-by: Panchajanya1999 [email protected]