feat(LM Studio): Add response_format param for LM Studio to config (#2502)

This commit is contained in:
i-sun
2025-06-17 21:25:18 +09:00
committed by GitHub
parent c70dc7614b
commit 62c330e5b3
4 changed files with 34 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ class LMStudioLLM(LLMBase):
}
if response_format:
params["response_format"] = response_format
if self.config.lmstudio_response_format is not None:
params["response_format"] = self.config.lmstudio_response_format
response = self.client.chat.completions.create(**params)
return response.choices[0].message.content