Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

docs: improve api reference for llm-connections api (#8327)

Marc Klingena1dd5b22a2a0
diff --git a/fern/apis/server/definition/llm-connections.yml b/fern/apis/server/definition/llm-connections.yml
index d9eeaf447e..b74a4df22b 100644
--- a/fern/apis/server/definition/llm-connections.yml
+++ b/fern/apis/server/definition/llm-connections.yml
@@ -22,7 +22,7 @@ service:
response: PaginatedLlmConnections
upsert:
method: PUT
- docs: Create or update an LLM connection (upsert)
+ docs: Create or update an LLM connection. The connection is upserted on provider.
path: /llm-connections
request: UpsertLlmConnectionRequest
response: LlmConnection
@@ -34,7 +34,7 @@ types:
id: string
provider:
type: string
- docs: Provider name (e.g., 'openai', 'anthropic')
+ docs: Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting.
adapter:
type: string
docs: The adapter used to interface with the LLM
@@ -66,7 +66,7 @@ types:
properties:
provider:
type: string
- docs: Provider name (e.g., 'openai', 'anthropic'). Must be unique in project.
+ docs: Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting.
adapter:
type: LlmAdapter
docs: The adapter used to interface with the LLM
diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.yml
index bcfcc73028..fbab937cd4 100644
--- a/web/public/generated/api/openapi.yml
+++ b/web/public/generated/api/openapi.yml
@@ -1477,7 +1477,9 @@ paths:
security:
- BasicAuth: []
put:
- description: Create or update an LLM connection (upsert)
+ description: >-
+ Create or update an LLM connection. The connection is upserted on
+ provider.
operationId: llmConnections_upsert
tags:
- LlmConnections
@@ -6335,7 +6337,9 @@ components:
type: string
provider:
type: string
- description: Provider name (e.g., 'openai', 'anthropic')
+ description: >-
+ Provider name (e.g., 'openai', 'my-gateway'). Must be unique in
+ project, used for upserting.
adapter:
type: string
description: The adapter used to interface with the LLM
@@ -6397,13 +6401,15 @@ components:
properties:
provider:
type: string
- description: Provider name (e.g., 'openai', 'anthropic')
+ description: >-
+ Provider name (e.g., 'openai', 'my-gateway'). Must be unique in
+ project, used for upserting.
adapter:
$ref: '#/components/schemas/LlmAdapter'
description: The adapter used to interface with the LLM
secretKey:
type: string
- description: Secret key for the LLM API
+ description: Secret key for the LLM API.
baseURL:
type: string
nullable: true
@@ -6417,16 +6423,13 @@ components:
withDefaultModels:
type: boolean
nullable: true
- description: Whether to include default models
+ description: Whether to include default models. Default is true.
extraHeaders:
type: object
additionalProperties:
type: string
nullable: true
description: Extra headers to send with requests
- config:
- nullable: true
- description: Additional configuration specific to the adapter
required:
- provider
- adapter
diff --git a/web/public/generated/postman/collection.json b/web/public/generated/postman/collection.json
index 0766a5f810..88159c972f 100644
--- a/web/public/generated/postman/collection.json
+++ b/web/public/generated/postman/collection.json
@@ -1174,7 +1174,7 @@
"_type": "endpoint",
"name": "Upsert",
"request": {
- "description": "Create or update an LLM connection (upsert)",
+ "description": "Create or update an LLM connection. The connection is upserted on provider.",
"url": {
"raw": "{{baseUrl}}/api/public/llm-connections",
"host": [
@@ -1193,7 +1193,7 @@
"auth": null,
"body": {
"mode": "raw",
- "raw": "{\n \"provider\": \"example\",\n \"adapter\": \"anthropic\",\n \"secretKey\": \"example\",\n \"baseURL\": \"example\",\n \"customModels\": [\n \"example\"\n ],\n \"withDefaultModels\": true,\n \"extraHeaders\": {\n \"example\": \"example\"\n },\n \"config\": \"UNKNOWN\"\n}",
+ "raw": "{\n \"provider\": \"example\",\n \"adapter\": \"anthropic\",\n \"secretKey\": \"example\",\n \"baseURL\": \"example\",\n \"customModels\": [\n \"example\"\n ],\n \"withDefaultModels\": true,\n \"extraHeaders\": {\n \"example\": \"example\"\n }\n}",
"options": {
"raw": {
"language": "json"