Skip to content

Commit 07aa683

Browse files
committed
doc imporve
1 parent 82707a2 commit 07aa683

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

backend/app/models/llm/request.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,14 @@ class LLMCallRequest(SQLModel):
130130
"""User-facing API request for LLM completion."""
131131

132132
query: QueryParams = Field(..., description="Query-specific parameters")
133-
config: LLMCallConfig = Field(..., description="Configuration for the LLM call")
133+
config: LLMCallConfig = Field(
134+
...,
135+
description=(
136+
"Complete LLM call configuration, provided either by reference (id + version) "
137+
"or as config blob. Use the blob only for testing/validation; "
138+
"in production, always use the id + version."
139+
),
140+
)
134141
callback_url: HttpUrl | None = Field(
135142
default=None, description="Webhook URL for async response delivery"
136143
)

backend/app/tests/api/routes/configs/test_version.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
create_test_project,
1111
create_test_version,
1212
)
13+
from app.models import ConfigBlob, CompletionConfig
1314

1415

1516
def test_create_version_success(
@@ -297,9 +298,6 @@ def test_get_version_by_number(
297298
name="test-config",
298299
)
299300

300-
# Create additional version
301-
from app.models.llm.request import ConfigBlob, CompletionConfig
302-
303301
version = create_test_version(
304302
db=db,
305303
config_id=config.id,

0 commit comments

Comments
 (0)