(sessionID string, cfg config.Config, engine *agent.QueryEngine, state *agent.AgentState, store *session.Store, emit func(PushEvent))
| 155 | } |
| 156 | target.PinnedFields = map[string]bool{} |
| 157 | for field, pinned := range source.PinnedFields { |
| 158 | if !pinned { |
| 159 | continue |
| 160 | } |
| 161 | target.PinnedFields[field] = true |
| 162 | switch field { |
| 163 | case "api_key": |
| 164 | target.APIKey = source.APIKey |
| 165 | case "api_base_url": |
| 166 | target.APIBaseURL = source.APIBaseURL |
| 167 | case "api_model": |
| 168 | target.APIModel = source.APIModel |
| 169 | case "api_type": |
| 170 | target.APIType = source.APIType |
| 171 | case "api_max_tokens": |
| 172 | target.APIMaxTokens = source.APIMaxTokens |
| 173 | case "harness_mode": |
| 174 | target.HarnessMode = source.HarnessMode |
no test coverage detected