mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-31 07:01:17 +01:00
Compare commits
2 Commits
feat/get-s
...
fix/llm-cl
| Author | SHA1 | Date | |
|---|---|---|---|
|
682df6a573
|
|||
| a52addebd8 |
@@ -50,11 +50,13 @@ export function createLlmClient(config: LlmClientConfig): LlmClient {
|
|||||||
schema: enhancementResultJsonSchema,
|
schema: enhancementResultJsonSchema,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
reasoning: { effort: "none" },
|
||||||
stream: false,
|
stream: false,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const content = response.choices?.[0]?.message?.content
|
const message = response.choices?.[0]?.message
|
||||||
|
const content = message?.content ?? message?.reasoning
|
||||||
if (typeof content !== "string") {
|
if (typeof content !== "string") {
|
||||||
console.warn("[enhancement] LLM returned no content in response")
|
console.warn("[enhancement] LLM returned no content in response")
|
||||||
return null
|
return null
|
||||||
|
|||||||
Reference in New Issue
Block a user