* Updates the API configuration and rebuilds the API handler. * There is no tool-protocol switching or tool parser swapping. * * @param newApiConfiguration - The new API configuration to use
(newApiConfiguration: ProviderSettings)
| 1502 | * @param newApiConfiguration - The new API configuration to use |
| 1503 | */ |
| 1504 | public updateApiConfiguration(newApiConfiguration: ProviderSettings): void { |
| 1505 | // Update the configuration and rebuild the API handler |
| 1506 | this.apiConfiguration = newApiConfiguration |
| 1507 | this.api = buildApiHandler(this.apiConfiguration) |
| 1508 | } |
| 1509 | |
| 1510 | public async submitUserMessage( |
| 1511 | text: string, |
no test coverage detected