diff --git a/fern/apis/text-gen/openapi/openapi-overrides.yml b/fern/apis/text-gen/openapi/openapi-overrides.yml index 5c1a142..03f7410 100644 --- a/fern/apis/text-gen/openapi/openapi-overrides.yml +++ b/fern/apis/text-gen/openapi/openapi-overrides.yml @@ -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: