- ClaudeCliService: Marker-basierte ask_user_choice Erkennung im Stream-Parser - AnthropicService: StreamChatViaCli mit allowUserChoice, planMode, webSearch - BuildHistoryContext erweitert für tool_use/tool_result (Choice-Antworten) - Tool-Use Records werden in DB persistiert (Poll-Kompatibilität) - CLI Tools konfigurierbar: Workspace/Plan-Modus/WebSearch/kein Workspace - OAuth DB-Felder für zukünftige Token-Verwaltung Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
1.2 KiB
C#
25 lines
1.2 KiB
C#
namespace Gott.Models;
|
|
|
|
public class ApiKeyRecord
|
|
{
|
|
public long Id { get; set; }
|
|
public string KeyId { get; set; }
|
|
public string Provider { get; set; } // anthropic, gemini, openai, ...
|
|
public string Name { get; set; } // Anzeigename z.B. "Tausi Pro Key"
|
|
public string ApiKey { get; set; } // Der eigentliche Key
|
|
public bool IsPublic { get; set; } // Für alle User sichtbar/auswählbar
|
|
public string Status { get; set; } // ok, invalid, rate_limited, quota_exceeded, error
|
|
public string Plan { get; set; } // Pro, Max, Pro/Max, API Console, Unknown
|
|
public double? Usage7d { get; set; }
|
|
public double? Usage5h { get; set; }
|
|
public string CheckedAt { get; set; } // Wann zuletzt geprüft
|
|
public string SourceUrl { get; set; } // GitHub-URL (bei adoptierten Scan-Keys)
|
|
public string CreatedAt { get; set; }
|
|
public string UpdatedAt { get; set; }
|
|
|
|
// OAuth-spezifische Felder
|
|
public string RefreshToken { get; set; } // OAuth Refresh-Token
|
|
public string AccessTokenExpiresAt { get; set; } // Wann der Access-Token abläuft (ISO 8601)
|
|
public string OAuthProvider { get; set; } // z.B. "anthropic" (für zukünftige weitere OAuth-Provider)
|
|
}
|