@@ -118,7 +118,7 @@ const (
118118// a text completion, a chat completion, an embedding request, a speech request, or a transcription request.
119119type RequestInput struct {
120120 TextCompletionInput * string `json:"text_completion_input,omitempty"`
121- ChatCompletionInput []BifrostMessage `json:"chat_completion_input,omitempty"`
121+ ChatCompletionInput []BifrostMessage `json:"chat_completion_input,omitempty"`
122122 EmbeddingInput * EmbeddingInput `json:"embedding_input,omitempty"`
123123 SpeechInput * SpeechInput `json:"speech_input,omitempty"`
124124 TranscriptionInput * TranscriptionInput `json:"transcription_input,omitempty"`
@@ -295,12 +295,12 @@ type Fallback struct {
295295// mapped to the provider's parameters.
296296type ModelParameters struct {
297297 ToolChoice * ToolChoice `json:"tool_choice,omitempty"` // Whether to call a tool
298- Tools []Tool `json:"tools,omitempty"` // Tools to use
298+ Tools []Tool `json:"tools,omitempty"` // Tools to use
299299 Temperature * float64 `json:"temperature,omitempty"` // Controls randomness in the output
300300 TopP * float64 `json:"top_p,omitempty"` // Controls diversity via nucleus sampling
301301 TopK * int `json:"top_k,omitempty"` // Controls diversity via top-k sampling
302302 MaxTokens * int `json:"max_tokens,omitempty"` // Maximum number of tokens to generate
303- StopSequences []string `json:"stop_sequences,omitempty"` // Sequences that stop generation
303+ StopSequences []string `json:"stop_sequences,omitempty"` // Sequences that stop generation
304304 PresencePenalty * float64 `json:"presence_penalty,omitempty"` // Penalizes repeated tokens
305305 FrequencyPenalty * float64 `json:"frequency_penalty,omitempty"` // Penalizes frequent tokens
306306 ParallelToolCalls * bool `json:"parallel_tool_calls,omitempty"` // Enables parallel tool calls
@@ -318,7 +318,7 @@ type FunctionParameters struct {
318318 Description * string `json:"description,omitempty"` // Description of the parameters
319319 Required []string `json:"required,omitempty"` // Required parameter names
320320 Properties map [string ]interface {} `json:"properties,omitempty"` // Parameter properties
321- Enum []string `json:"enum,omitempty"` // Enum values for the parameters
321+ Enum []string `json:"enum,omitempty"` // Enum values for the parameters
322322}
323323
324324// Function represents a function that can be called by the model.
@@ -492,7 +492,7 @@ type ToolMessage struct {
492492type AssistantMessage struct {
493493 Refusal * string `json:"refusal,omitempty"`
494494 Annotations []Annotation `json:"annotations,omitempty"`
495- ToolCalls []ToolCall `json:"tool_calls,omitempty"`
495+ ToolCalls []ToolCall `json:"tool_calls,omitempty"`
496496 Thought * string `json:"thought,omitempty"`
497497}
498498
@@ -795,7 +795,7 @@ type BifrostResponseExtraFields struct {
795795 Provider ModelProvider `json:"provider"`
796796 Params ModelParameters `json:"model_params"`
797797 Latency * int64 `json:"latency,omitempty"`
798- ChatHistory []BifrostMessage `json:"chat_history,omitempty"`
798+ ChatHistory []BifrostMessage `json:"chat_history,omitempty"`
799799 BilledUsage * BilledLLMUsage `json:"billed_usage,omitempty"`
800800 ChunkIndex int `json:"chunk_index"` // used for streaming responses to identify the chunk index, will be 0 for non-streaming responses
801801 RawResponse interface {} `json:"raw_response,omitempty"`
0 commit comments