|
|
@@ -6,7 +6,7 @@ type OllamaRequest struct {
|
|
|
Model string `json:"model,omitempty"`
|
|
|
Messages []dto.Message `json:"messages,omitempty"`
|
|
|
Stream bool `json:"stream,omitempty"`
|
|
|
- Temperature float64 `json:"temperature,omitempty"`
|
|
|
+ Temperature *float64 `json:"temperature,omitempty"`
|
|
|
Seed float64 `json:"seed,omitempty"`
|
|
|
Topp float64 `json:"top_p,omitempty"`
|
|
|
TopK int `json:"top_k,omitempty"`
|
|
|
@@ -18,14 +18,14 @@ type OllamaRequest struct {
|
|
|
}
|
|
|
|
|
|
type Options struct {
|
|
|
- Seed int `json:"seed,omitempty"`
|
|
|
- Temperature float64 `json:"temperature,omitempty"`
|
|
|
- TopK int `json:"top_k,omitempty"`
|
|
|
- TopP float64 `json:"top_p,omitempty"`
|
|
|
- FrequencyPenalty float64 `json:"frequency_penalty,omitempty"`
|
|
|
- PresencePenalty float64 `json:"presence_penalty,omitempty"`
|
|
|
- NumPredict int `json:"num_predict,omitempty"`
|
|
|
- NumCtx int `json:"num_ctx,omitempty"`
|
|
|
+ Seed int `json:"seed,omitempty"`
|
|
|
+ Temperature *float64 `json:"temperature,omitempty"`
|
|
|
+ TopK int `json:"top_k,omitempty"`
|
|
|
+ TopP float64 `json:"top_p,omitempty"`
|
|
|
+ FrequencyPenalty float64 `json:"frequency_penalty,omitempty"`
|
|
|
+ PresencePenalty float64 `json:"presence_penalty,omitempty"`
|
|
|
+ NumPredict int `json:"num_predict,omitempty"`
|
|
|
+ NumCtx int `json:"num_ctx,omitempty"`
|
|
|
}
|
|
|
|
|
|
type OllamaEmbeddingRequest struct {
|