101577f163
- Updated import paths in multiple service files to reflect the new agent-desk module. - Added a new configuration file for agent-desk in the Docker setup.
27 lines
575 B
Go
27 lines
575 B
Go
package adapter
|
|
|
|
import "agent-desk/internal/models"
|
|
|
|
type AIConfigSnapshot struct {
|
|
ID int64
|
|
Provider string
|
|
ModelName string
|
|
BaseURL string
|
|
MaxOutputTokens int
|
|
TimeoutMS int
|
|
}
|
|
|
|
func BuildAIConfigSnapshot(item *models.AIConfig) *AIConfigSnapshot {
|
|
if item == nil {
|
|
return nil
|
|
}
|
|
return &AIConfigSnapshot{
|
|
ID: item.ID,
|
|
Provider: string(item.Provider),
|
|
ModelName: item.ModelName,
|
|
BaseURL: item.BaseURL,
|
|
MaxOutputTokens: item.MaxOutputTokens,
|
|
TimeoutMS: item.TimeoutMS,
|
|
}
|
|
}
|