File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " claude-dev " : patch
3+ ---
4+
5+ Remove hard-coded temperature from LM Studio API requests and add support for ` reasoning_content ` in LM Studio API responses.
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ export class LmStudioHandler implements ApiHandler {
2727 const stream = await this . client . chat . completions . create ( {
2828 model : this . getModel ( ) . id ,
2929 messages : openAiMessages ,
30- temperature : 0 ,
3130 stream : true ,
3231 } )
3332 for await ( const chunk of stream ) {
@@ -38,6 +37,12 @@ export class LmStudioHandler implements ApiHandler {
3837 text : delta . content ,
3938 }
4039 }
40+ if ( delta && "reasoning_content" in delta && delta . reasoning_content ) {
41+ yield {
42+ type : "reasoning" ,
43+ reasoning : ( delta . reasoning_content as string | undefined ) || "" ,
44+ }
45+ }
4146 }
4247 } catch ( error ) {
4348 // LM Studio doesn't return an error code/body for now
You can’t perform that action at this time.
0 commit comments