package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Apr 5, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Message struct {
Index int `json:"index"`
Role string `json:"role"`
Template string `json:"template"`
Variables []string `json:"variables"`
}
type ModelConfig struct {
Mode string `json:"mode"`
Model string `json:"model"`
Temperature float32 `json:"temperature"`
TopP float32 `json:"top_p"`
Stop []string `json:"stop"`
FrequencyPenalty float32 `json:"frequency_penalty"`
PresencePenalty float32 `json:"presence_penalty"`
}
type PromptVersion struct {
Id string `json:"id"`
Hash string `json:"hash"`
Version uint `json:"version"`
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
Provider string `json:"provider"`
TemplatingEngine string `json:"templating_engine"`
Messages []Message `json:"messages"`
LlmConfig ModelConfig `json:"llm_config"`
}
type Target struct {
Id string `json:"id"`
PromptId string `json:"prompt_id"`
Version string `json:"version"`
UpdatedAt time.Time `json:"updated_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.