Skip to content

Commit e3825c9

Browse files
authored
chore: Add Moonshot provider to OpenAPI specification (#23)
Added Moonshot provider configuration and environment variables.
1 parent 7978379 commit e3825c9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

openapi.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ components:
482482
- deepseek
483483
- google
484484
- mistral
485+
- moonshot
485486
x-provider-configs:
486487
ollama:
487488
id: 'ollama'
@@ -623,6 +624,20 @@ components:
623624
name: 'chat_completions'
624625
method: 'POST'
625626
endpoint: '/chat/completions'
627+
moonshot:
628+
id: 'moonshot'
629+
url: 'https://api.moonshot.ai/v1'
630+
auth_type: 'bearer'
631+
supports_vision: false
632+
endpoints:
633+
models:
634+
name: 'list_models'
635+
method: 'GET'
636+
endpoint: '/models'
637+
chat:
638+
name: 'chat_completions'
639+
method: 'POST'
640+
endpoint: '/chat/completions'
626641
ProviderSpecificResponse:
627642
type: object
628643
description: |
@@ -1316,6 +1331,11 @@ components:
13161331
type: string
13171332
default: ''
13181333
description: 'Comma-separated list of models to allow. If empty, all models will be available'
1334+
- name: disallowed_models
1335+
env: 'DISALLOWED_MODELS'
1336+
type: string
1337+
default: ''
1338+
description: 'Comma-separated list of models to disallow. If empty, no models will be blocked. Takes lower precedence than ALLOWED_MODELS'
13191339
- name: enable_vision
13201340
env: 'ENABLE_VISION'
13211341
type: bool
@@ -1642,3 +1662,13 @@ components:
16421662
type: string
16431663
description: 'Mistral API Key'
16441664
secret: true
1665+
- name: moonshot_api_url
1666+
env: 'MOONSHOT_API_URL'
1667+
type: string
1668+
default: 'https://api.moonshot.ai/v1'
1669+
description: 'Moonshot API URL'
1670+
- name: moonshot_api_key
1671+
env: 'MOONSHOT_API_KEY'
1672+
type: string
1673+
description: 'Moonshot API Key'
1674+
secret: true

0 commit comments

Comments
 (0)