microsoft / TaskWeaver

A code-first agent framework for seamlessly planning and executing data analytics tasks.
https://microsoft.github.io/TaskWeaver/
MIT License
5.37k stars 688 forks source link

llm: Add Anthropic support #377

Closed Panchajanya1999 closed 4 months ago

Panchajanya1999 commented 4 months ago

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 kernel@panchajanya.dev

Panchajanya1999 commented 4 months ago

@microsoft-github-policy-service agree

Panchajanya1999 commented 4 months ago

hi @liqul can you have a look into this? It works perfectly.

liqul commented 4 months ago

hi @liqul can you have a look into this? It works perfectly.

Thanks for your contribution. Could you add a markdown file here to explain how to configure it?

liqul commented 4 months ago

Could you address the test failure?

Panchajanya1999 commented 4 months ago

Could you address the test failure?

Yeah, just added a commit to fix it. Still working on the md file.

Panchajanya1999 commented 4 months ago

Yeah, this is the doc.

Panchajanya1999 commented 4 months ago

Hi @liqul can you check now?