Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/kimi_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class LLMProvider(BaseModel):
"""Environment variables to set before creating the provider instance"""
custom_headers: dict[str, str] | None = None
"""Custom headers to include in API requests"""
reasoning_key: str | None = None
"""Key name for reasoning/thinking content in OpenAI-compatible API responses (e.g. "reasoning_content")."""
oauth: OAuthRef | None = None
"""OAuth credential reference (do not store tokens here)."""

Expand Down
1 change: 1 addition & 0 deletions src/kimi_cli/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def create_llm(
model=model.model,
base_url=provider.base_url,
api_key=resolved_api_key,
reasoning_key=provider.reasoning_key,
)
case "openai_responses":
from kosong.contrib.chat_provider.openai_responses import OpenAIResponses
Expand Down
Loading