feat(web): provider management UI — list, test, model capabilities (#123) (#142)
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
Co-authored-by: Jason Woltje <[email protected]> Co-committed-by: Jason Woltje <[email protected]>
This commit was merged in pull request #142.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
export interface TestConnectionDto {
|
||||
/** Provider identifier to test (e.g. 'ollama', custom provider id) */
|
||||
providerId: string;
|
||||
/** Optional base URL override for ad-hoc testing */
|
||||
baseUrl?: string;
|
||||
}
|
||||
|
||||
export interface TestConnectionResultDto {
|
||||
providerId: string;
|
||||
reachable: boolean;
|
||||
/** Round-trip latency in milliseconds (present when reachable) */
|
||||
latencyMs?: number;
|
||||
/** Human-readable error when unreachable */
|
||||
error?: string;
|
||||
/** Model ids discovered at the remote endpoint (present when reachable) */
|
||||
discoveredModels?: string[];
|
||||
}
|
||||
Reference in New Issue
Block a user