We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I believe I'm following the documentation exactly, but receiving a typing error. Am I doing something wrong?
Type 'Anthropic & { [key: string]: unknown; chat: { completions: { create: <P extends AnthropicChatCompletionParams>(params: P) => P extends { stream: true; } ? Promise<...> : Promise<...>; }; }; }' does not satisfy the constraint 'OpenAI | GenericClient'. Type 'Anthropic & { [key: string]: unknown; chat: { completions: { create: <P extends AnthropicChatCompletionParams>(params: P) => P extends { stream: true; } ? Promise<...> : Promise<...>; }; }; }' is missing the following properties from type 'OpenAI': organization, project, embeddings, files, and 6 more.ts(2344) const anthropicClient: Anthropic & { [key: string]: unknown; chat: { completions: { create: <P extends AnthropicChatCompletionParams>(params: P) => P extends { stream: true; } ? Promise<...> : Promise<...>; }; }; }
The text was updated successfully, but these errors were encountered:
what versions of each package are you on?
Sorry, something went wrong.
I'm seeing this issue with:
@anthropic-ai/sdk 0.21.1 @instructor-ai/instructor 1.3.0 llm-polyglot 1.0.0
Also had the same issue with previous versions of @anthropic-ai/sdk (0.20.x) and @instructor-ai/instructor (1.2.1).
Successfully merging a pull request may close this issue.
I believe I'm following the documentation exactly, but receiving a typing error. Am I doing something wrong?
The text was updated successfully, but these errors were encountered: