Skip to content

Commit

Permalink
refactor(api): mark completions API as legacy (#291)
Browse files Browse the repository at this point in the history
This has been replaced by the messages API which is now GA.
  • Loading branch information
stainless-bot committed Feb 14, 2024
1 parent 33b935e commit c78e2e2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/resources/completions.ts
Expand Up @@ -8,7 +8,15 @@ import { Stream } from '@anthropic-ai/sdk/streaming';

export class Completions extends APIResource {
/**
* Create a Text Completion
* [Legacy] Create a Text Completion.
*
* The Text Completions API is a legacy API. We recommend using the
* [Messages API](https://docs.anthropic.com/claude/reference/messages_post) going
* forward.
*
* Future models and features will not be compatible with Text Completions. See our
* [migration guide](https://docs.anthropic.com/claude/reference/migrating-from-text-completions-to-messages)
* for guidance in migrating from Text Completions to Messages.
*/
create(body: CompletionCreateParamsNonStreaming, options?: Core.RequestOptions): APIPromise<Completion>;
create(
Expand Down

0 comments on commit c78e2e2

Please sign in to comment.