(conf map[string]interface{}, models *modelsConfig)
| 691 | } |
| 692 | |
| 693 | func applyOpenclawModelsConfig(conf map[string]interface{}, models *modelsConfig) error { |
| 694 | if models == nil { |
| 695 | delete(conf, "models") |
| 696 | return nil |
| 697 | } |
| 698 | modelsMap, err := structToMap(models) |
| 699 | if err != nil { |
| 700 | return err |
| 701 | } |
| 702 | conf["models"] = modelsMap |
| 703 | return nil |
| 704 | } |
| 705 | |
| 706 | type modelCost struct { |
| 707 | Input float64 `json:"input"` |
no test coverage detected