@@ -14,7 +14,7 @@ type ChatParameters struct {
1414 LogProbs * bool `json:"logprobs,omitempty"` // Number of logprobs to return
1515 MaxCompletionTokens * int `json:"max_completion_tokens,omitempty"` // Maximum number of tokens to generate
1616 Metadata * map [string ]any `json:"metadata,omitempty"` // Metadata to be returned with the response
17- Modalities []string `json:"modalities,omitempty"` // Modalities to be returned with the response
17+ Modalities []string `json:"modalities,omitempty"` // Modalities to be returned with the response
1818 ParallelToolCalls * bool `json:"parallel_tool_calls,omitempty"`
1919 PresencePenalty * float64 `json:"presence_penalty,omitempty"` // Penalizes repeated tokens
2020 PromptCacheKey * string `json:"prompt_cache_key,omitempty"` // Prompt cache key
@@ -24,7 +24,7 @@ type ChatParameters struct {
2424 Seed * int `json:"seed,omitempty"`
2525 ServiceTier * string `json:"service_tier,omitempty"`
2626 StreamOptions * ChatStreamOptions `json:"stream_options,omitempty"`
27- Stop []string `json:"stop,omitempty"`
27+ Stop []string `json:"stop,omitempty"`
2828 Store * bool `json:"store,omitempty"`
2929 Temperature * float64 `json:"temperature,omitempty"`
3030 TopLogProbs * int `json:"top_logprobs,omitempty"`
@@ -71,7 +71,7 @@ type ToolFunctionParameters struct {
7171 Description * string `json:"description,omitempty"` // Description of the parameters
7272 Required []string `json:"required,omitempty"` // Required parameter names
7373 Properties map [string ]interface {} `json:"properties,omitempty"` // Parameter properties
74- Enum []string `json:"enum,omitempty"` // Enum values for the parameters
74+ Enum []string `json:"enum,omitempty"` // Enum values for the parameters
7575}
7676
7777type ChatToolCustom struct {
@@ -89,7 +89,7 @@ type ChatToolCustomGrammarFormat struct {
8989 Syntax string `json:"syntax"` // "lark" | "regex"
9090}
9191
92- // Combined tool choices for all providers, make sure to check the provider's
92+ // ChatToolChoiceType for all providers, make sure to check the provider's
9393// documentation to see which tool choices are supported.
9494type ChatToolChoiceType string
9595
@@ -178,7 +178,7 @@ type ChatToolChoiceAllowedToolsTool struct {
178178
179179// MESSAGES
180180
181- // ModelChatMessageRole represents the role of a chat message
181+ // ChatMessageRole represents the role of a chat message
182182type ChatMessageRole string
183183
184184const (
@@ -296,7 +296,7 @@ type ChatToolMessage struct {
296296type ChatAssistantMessage struct {
297297 Refusal * string `json:"refusal,omitempty"`
298298 Annotations []ChatAssistantMessageAnnotation `json:"annotations,omitempty"`
299- ToolCalls []ChatAssistantMessageToolCall `json:"tool_calls,omitempty"`
299+ ToolCalls []ChatAssistantMessageToolCall `json:"tool_calls,omitempty"`
300300}
301301
302302// ChatAssistantMessageAnnotation represents an annotation in a response.
0 commit comments