Skip to content

Commit

Permalink
Fixed issue where generic config structs would have too many config f…
Browse files Browse the repository at this point in the history
…ields
  • Loading branch information
baalimago committed Aug 19, 2024
1 parent 3151d27 commit a8fdfbe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/text/generic/stream_completer_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (

// StreamCompleter is a struct which follows the model for both OpenAI and Mistral
type StreamCompleter struct {
Model string
FrequencyPenalty *float64
MaxTokens *int
PresencePenalty *float64
Temperature *float64
TopP *float64
ToolChoice *string
Model string `json:"-"`
FrequencyPenalty *float64 `json:"-"`
MaxTokens *int `json:"-"`
PresencePenalty *float64 `json:"-"`
Temperature *float64 `json:"-"`
TopP *float64 `json:"-"`
ToolChoice *string `json:"-"`
Clean func([]models.Message) []models.Message `json:"-"`
url string
tools []ToolSuper
Expand Down

0 comments on commit a8fdfbe

Please sign in to comment.