mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
Pass include_usage to text generation endpoint
This commit is contained in:
1 file changed
+4
-1
@@ -233,7 +233,10 @@ export class SessionManager {
|
||||
messages,
|
||||
tools: session.tools && Object.keys(session.tools).length > 0 ? Object.values(session.tools) : undefined,
|
||||
tool_choice: session.tools && Object.keys(session.tools).length > 0 ? 'auto' : undefined,
|
||||
stream: true
|
||||
stream: true,
|
||||
stream_options: {
|
||||
include_usage: true,
|
||||
},
|
||||
};
|
||||
|
||||
// Generate streaming response
|
||||
|
||||
Reference in new issue
Block a user