-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Simplify request logger a bit #1755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -108,14 +108,16 @@ export class GeminiNativeBYOKLMProvider implements BYOKModelProvider<LanguageMod | |||||||||||
| messages: geminiMessagesToRawMessagesForLogging(contents, systemInstruction), | ||||||||||||
| ourRequestId: requestId, | ||||||||||||
| location: ChatLocation.Other, | ||||||||||||
| tools: options.tools?.map((tool): OpenAiFunctionTool => ({ | ||||||||||||
| type: 'function', | ||||||||||||
| function: { | ||||||||||||
| name: tool.name, | ||||||||||||
| description: tool.description, | ||||||||||||
| parameters: tool.inputSchema | ||||||||||||
| } | ||||||||||||
| })), | ||||||||||||
| body: { | ||||||||||||
| tools: options.tools?.map((tool): OpenAiFunctionTool => ({ | ||||||||||||
| type: 'function', | ||||||||||||
| function: { | ||||||||||||
| name: tool.name, | ||||||||||||
| description: tool.description, | ||||||||||||
| parameters: tool.inputSchema | ||||||||||||
| } | ||||||||||||
| })) | ||||||||||||
|
||||||||||||
| })) | |
| })), | |
| max_tokens: options.maxTokens, | |
| temperature: options.temperature, | |
| prediction: options.prediction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
bodyobject only contains thetoolsfield but could contain additional request parameters that may already be present inoptions. Consider whether other relevant fields from the request options should also be included in thebodyobject for logging consistency (e.g.,max_tokens,temperature,prediction). This would ensure comprehensive logging of the request parameters.