Skip to content

Commit

Permalink
text: add streaming option
Browse files Browse the repository at this point in the history
  • Loading branch information
adelbertc committed Mar 8, 2024
1 parent ad188fe commit 213f8bc
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions fern/apis/text-gen/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,26 @@ paths:
/v1/chat/completions:
post:
x-fern-sdk-method-name: createChatCompletion
x-fern-streaming:
stream-condition: $request.stream
response:
$ref: "#/components/schemas/ChatCompletionResponse"
response-stream:
$ref: "#/components/schemas/ChatCompletionChunk"
servers:
- url: https://text.octoai.cloud
- url: https://text.octoai.run
x-name: TextGen
/v1/completions:
post:
x-fern-sdk-method-name: createCompletion
x-fern-streaming:
stream-condition: $request.stream
response:
$ref: "#/components/schemas/CompletionResponse"
response-stream:
$ref: "#/components/schemas/CompletionResponse"
servers:
- url: https://text.octoai.cloud
- url: https://text.octoai.run
x-name: TextGen
components:
schemas:
Expand Down

0 comments on commit 213f8bc

Please sign in to comment.