tghamm / Anthropic.SDK

An unofficial C#/.NET SDK for accessing the Anthropic Claude API
https://www.nuget.org/packages/Anthropic.SDK
MIT License
55 stars 10 forks source link

pass anthropic-version and model as parameters #2

Closed MSIH closed 1 year ago

MSIH commented 1 year ago

Currently the version and model are hard coded.

tghamm commented 1 year ago

@MSIH Hi, model is an exposed input parameter (you could change to 'claude-2.0' for instance), but you're right about anthropic-version. That was an intentional choice given the gravity of the changes between their initial release and the 06-01 version, I kind of assumed the library would need adaptation like their fully supported ones did in a future version, but I can expose it if you feel like that would be the better choice. Thoughts?

MSIH commented 1 year ago

I am not clear on how the version and the model work together. Is the version the date of content used to create the model?

I just hate hard-coded values. they work until they don't. nice to have but not necessary. ideally would expose and set a default value.

tghamm commented 1 year ago

The model refers to the version of Claude that you are calling, (i.e. Claude Instant, Claude 2) - see https://docs.anthropic.com/claude/reference/selecting-a-model. The anthropic-version refers to the version of the api that's being called under the hood (there's only two versions, and only one that's not deprecated), as described here: https://docs.anthropic.com/claude/reference/versioning. That said, happy to expose the anthropic-version with a default already set. I'll also update the README to show using the claude-2.0 family as the primary model of use as that was released just this week. As it takes a model as input, it's not hard-coded, but the documentation shows 1.3, which is now out of date.