Skip to content

Commit

Permalink
feat: run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
louisjoecodes committed Dec 22, 2024
1 parent 2ed5968 commit 814ee69
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: Publish Docs
env:
FERN_TOKEN: ${{ secrets.FERN_API_KEY }}
run: fern generate --docs
run: fern generate --docs
52 changes: 22 additions & 30 deletions fern/apis/api/asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,13 @@ channels:
optimize_streaming_latency:
description: Latency optimization level (deprecated)
type: string
enum: ["0", "1", "2", "3", "4"]
default: "0"
enum: ['0', '1', '2', '3', '4']
default: '0'
output_format:
description: The output audio format
type: string
enum:
[
"mp3_44100",
"pcm_16000",
"pcm_22050",
"pcm_24000",
"pcm_44100",
"ulaw_8000",
]
default: "mp3_44100"
enum: ['mp3_44100', 'pcm_16000', 'pcm_22050', 'pcm_24000', 'pcm_44100', 'ulaw_8000']
default: 'mp3_44100'
inactivity_timeout:
description: Timeout for inactivity before connection is closed
type: number
Expand All @@ -92,17 +84,17 @@ channels:
operationId: sendMessage
message:
oneOf:
- $ref: "#/components/messages/InitializeConnection"
- $ref: "#/components/messages/SendText"
- $ref: "#/components/messages/CloseConnection"
- $ref: '#/components/messages/InitializeConnection'
- $ref: '#/components/messages/SendText'
- $ref: '#/components/messages/CloseConnection'

subscribe:
description: Receive messages from the WebSocket
operationId: receiveMessage
message:
oneOf:
- $ref: "#/components/messages/AudioOutput"
- $ref: "#/components/messages/FinalOutput"
- $ref: '#/components/messages/AudioOutput'
- $ref: '#/components/messages/FinalOutput'

x-fern-examples:
- query-parameters:
Expand All @@ -111,20 +103,20 @@ channels:
- type: publish
messageId: InitializeConnection
value:
text: " "
text: ' '
voice_settings:
stability: 0.5
similarity_boost: 0.8
xi_api_key: <YOUR_API_KEY>
- type: publish
messageId: SendText
value:
text: "Hello World"
text: 'Hello World'
try_trigger_generation: true
- type: publish
messageId: CloseConnection
value:
text: ""
text: ''
- type: subscribe
messageId: AudioOutput
value:
Expand All @@ -135,23 +127,23 @@ components:
SendText:
messageId: sendText
payload:
$ref: "#/components/schemas/SendText"
$ref: '#/components/schemas/SendText'
InitializeConnection:
messageId: initializeConnection
payload:
$ref: "#/components/schemas/InitializeConnection"
$ref: '#/components/schemas/InitializeConnection'
CloseConnection:
messageId: closeConnection
payload:
$ref: "#/components/schemas/CloseConnection"
$ref: '#/components/schemas/CloseConnection'
AudioOutput:
messageId: audioOutput
payload:
$ref: "#/components/schemas/AudioOutput"
$ref: '#/components/schemas/AudioOutput'
FinalOutput:
messageId: finalOutput
payload:
$ref: "#/components/schemas/FinalOutput"
$ref: '#/components/schemas/FinalOutput'

schemas:
InitializeConnection:
Expand All @@ -161,10 +153,10 @@ components:
x-fern-type: literal<" ">
description: The initial text that must be sent is a blank space.
voice_settings:
$ref: "#/components/schemas/RealtimeVoiceSettings"
$ref: '#/components/schemas/RealtimeVoiceSettings'
generation_config:
$ref: "#/components/schemas/GenerationConfig"
description: "This property should only be provided in the first message you send. "
$ref: '#/components/schemas/GenerationConfig'
description: 'This property should only be provided in the first message you send. '
xi-api-key:
type: string
description: |
Expand Down Expand Up @@ -328,9 +320,9 @@ components:
description: |
Indicates if the generation is complete. If set to `True`, `audio` will be null.
normalizedAlignment:
$ref: "#/components/schemas/NormalizedAlignment"
$ref: '#/components/schemas/NormalizedAlignment'
alignment:
$ref: "#/components/schemas/Alignment"
$ref: '#/components/schemas/Alignment'

NormalizedAlignment:
type: object
Expand Down
2 changes: 1 addition & 1 deletion fern/apis/api/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ api:
overrides: ./openapi-overrides.yml
settings:
use-title: false
- path: ./asyncapi.yml
- path: ./asyncapi.yml
4 changes: 2 additions & 2 deletions fern/apis/convai/convo-asyncapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tags:

channels:
/v1/convai/conversation:
x-fern-audiences:
x-fern-audiences:
- convai
bindings:
ws:
Expand All @@ -32,7 +32,7 @@ channels:
description: The unique identifier for the voice to use in the TTS process.
schema:
type: string

description: Establish a WebSocket connection for real-time conversations with an AI agent.
publish:
summary: Messages sent from the client to the server.
Expand Down
4 changes: 2 additions & 2 deletions fern/apis/convai/generators.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
api:
api:
- openapi.json
- convo-asyncapi.yml
- convo-asyncapi.yml
18 changes: 9 additions & 9 deletions fern/apis/convai/openapi.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"openapi": "3.0.0",
"info": {
"title": "ElevenLabs Conversational AI WebSocket API",
"version": "1.0.0"
"title": "ElevenLabs Conversational AI WebSocket API",
"version": "1.0.0"
},
"servers": [
{
"url": "wss://api.elevenlabs.io",
"description": "Production WebSocket Server",
"protocol": "wss",
"x-fern-server-name": "Production"
}
{
"url": "wss://api.elevenlabs.io",
"description": "Production WebSocket Server",
"protocol": "wss",
"x-fern-server-name": "Production"
}
],
"paths": {},
"components": {}
}
}
2 changes: 1 addition & 1 deletion fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "elevenlabs",
"version": "0.46.10"
}
}

0 comments on commit 814ee69

Please sign in to comment.