JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix: 修改top_p参数默认值为空
CodehubTTG4da1a7fb451f
diff --git a/jiuwenswarm/agents/harness/common/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.py b/jiuwenswarm/agents/harness/common/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.pyindex bc1ddea242..0c2392b5af 100644--- a/jiuwenswarm/agents/harness/common/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.py+++ b/jiuwenswarm/agents/harness/common/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.py@@ -77,7 +77,13 @@ class ModelRequestConfig(BaseModel):"""Model config"""model_name: str = Field(default="", alias="model", description="Model name, e.g. gpt-4")temperature: float = Field(default=0.95, description="Temperature parameter, controlling the randomness of outputs")- top_p: float = Field(default=0.1, description="Top-p sampling parameter")+ top_p: Optional[float] = Field(+ default=None,+ description=(+ "Top-p sampling parameter. When None, the model backend default is used "+ "and top_p is not sent in the API request."+ ),+ )max_tokens: Optional[int] = Field(default=None, description="Maximum number of tokens to generate")stop: Union[Optional[str], None] = Field(default=None, description="Stop sequence")model_config = {"extra": "allow"}