Skip to content

Adding Basic anthropic Claude support.#404

Merged
dluc merged 13 commits intomicrosoft:mainfrom
alkampfergit:feature/anthropic
May 19, 2024
Merged

Adding Basic anthropic Claude support.#404
dluc merged 13 commits intomicrosoft:mainfrom
alkampfergit:feature/anthropic

Conversation

@alkampfergit
Copy link
Copy Markdown
Contributor

With this simple PR I added a very basic support to Anthropic Claude.

Actually there is a part that is not really correct, the part that return token count for a string. Actually we still have no real correct tokenizer written in C# for Claude, so for this example I'm using GPT4 tokenizer. The result is not fully correct but it is usable.

I'll fix the code as soon as a correct Anthropic Claude tokenizer will be available

@alkampfergit alkampfergit requested a review from dluc April 18, 2024 08:23
@dluc dluc force-pushed the feature/anthropic branch 2 times, most recently from 9b79af7 to 59e43bc Compare April 28, 2024 02:11
dluc added 2 commits May 19, 2024 09:41
Add more config options
Add support for IHttpClientFactory in KM builder
Refactoring
@dluc dluc force-pushed the feature/anthropic branch from 6a30471 to 4f8532e Compare May 19, 2024 16:58
@dluc dluc merged commit 26810e5 into microsoft:main May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants