docs: add temperature parameter documentation and code formatting improvements

- Added `temperature` parameter to Chat API documentation with implementation notes
- Improved code formatting in context_manager.py with consistent string quotes and line breaks
- Added section on future runtime LLM parameter override capabilities
- Updated API schemas to include temperature parameter (currently unused but reserved for future implementation)
This commit is contained in:
YueGuobin committed 2026-03-05 20:58:14 +08:00
1 parent 7f8364fbf5
commit 2485bfec46
32 files changed
+634 -918

No files matched your search

+6
View File
@@ -134,6 +134,12 @@ async def stream_chat(
llm_config.get("model"),
)
# TODO: Support runtime temperature override from request.temperature
# Currently, temperature is loaded from the user's LLM config in the database.
# To enable runtime override, uncomment the following:
# if request.temperature is not None:
# llm_config["temperature"] = str(request.temperature)
# Get or create AgentService for this project
agent_manager = await get_project_agent_manager()
agent_service = await agent_manager.get_agent(str(project.id), project.path)