Skip to content

Conversation

zakkor
Copy link

@zakkor zakkor commented Jan 13, 2025

(wip -- tool use support has not been added yet)

@zakkor zakkor changed the title Add support for Anthropic models (wip -- tool use support has not bee… Add support for Anthropic models Jan 13, 2025
resolvedName

self flag: #modelConstants.
"Anthropic define '-latest' models directly, for which we already have definitions. No need to resolve anything."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, OpenAI defines these directly, too. It was meant to duplicate centsForCompletionToken et al. so you don't have to repeat the numbers for the latest pinned model twice. Should probably explain this in a comment ^^

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I understand now. Will fix that!

zakkor and others added 6 commits January 13, 2025 23:11
… in the Anthropic classes instead of asOpenAIObject;

Remove rate limit data from Anthropic models and add a note that they're unimplemented;
Make `getAnswers: number` with a number > 1 return an array of completions instead of throwing an error (I am not sure if number=1 should return an array of size 1 or just the completion itself).
…/instance/maxCompletionTokens.st

Co-authored-by: Christoph Thiede <[email protected]>
…more closely what the Anthropic API sends us, handle more streaming events in preparation for streaming tool calls.

Fix rawOutput tracking for Anthropic models. Fix an issue with getting multiple assistant replies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants