mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-31 20:04:28 +01:00
Introduce ApiType enum for API selection
This commit adds a new enum, `ApiType`, to allow dynamic selection between different base URLs for API calls. The enum has two values: `agent` and `benchmark`, corresponding to different services. The `ApiType` enum is designed to be passed as a parameter to the `RestApiUtility` methods, enabling the utility to decide which base URL to use for HTTP requests.
This commit is contained in:
4
frontend/lib/models/benchmark_service/api_type.dart
Normal file
4
frontend/lib/models/benchmark_service/api_type.dart
Normal file
@@ -0,0 +1,4 @@
|
||||
enum ApiType {
|
||||
agent,
|
||||
benchmark,
|
||||
}
|
||||
Reference in New Issue
Block a user