ENG-01: gofmt
CI / Web-Barrierefreiheitspruefung (axe, Tastatur, Reflow, Textabstaende) (push) Canceled after 0s
CI / Core-Modul (Build/Vet/Test) (push) Canceled after 0s
CI / DMS Security-Test-Gate (AC5, Merge-Gate) (push) Canceled after 0s
CI / DMS-Modul Supply-Chain-Scan (govulncheck) (push) Canceled after 0s
CI / Web (dms-browser) (push) Canceled after 0s
CI / Web (pdf-viewer) (push) Canceled after 0s
CI / Web (shl) (push) Canceled after 0s
Supply-Chain-Scan (Go) / govulncheck (push) Canceled after 0s
CI / DMS-Modul (Lint/Build/Test/Coverage/Artefakt) (push) Canceled after 0s
CI / Web-Barrierefreiheitspruefung (axe, Tastatur, Reflow, Textabstaende) (push) Canceled after 0s
CI / Core-Modul (Build/Vet/Test) (push) Canceled after 0s
CI / DMS Security-Test-Gate (AC5, Merge-Gate) (push) Canceled after 0s
CI / DMS-Modul Supply-Chain-Scan (govulncheck) (push) Canceled after 0s
CI / Web (dms-browser) (push) Canceled after 0s
CI / Web (pdf-viewer) (push) Canceled after 0s
CI / Web (shl) (push) Canceled after 0s
Supply-Chain-Scan (Go) / govulncheck (push) Canceled after 0s
CI / DMS-Modul (Lint/Build/Test/Coverage/Artefakt) (push) Canceled after 0s
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f683bbae11
commit
943fa1930d
2 files changed
+14
-14
No files matched your search
@@ -36,20 +36,20 @@ type chatMessage struct {
|
||||
}
|
||||
|
||||
type chatRequestBody struct {
|
||||
Model string `json:"model"`
|
||||
Messages []chatMessage `json:"messages"`
|
||||
Stream bool `json:"stream"`
|
||||
Model string `json:"model"`
|
||||
Messages []chatMessage `json:"messages"`
|
||||
Stream bool `json:"stream"`
|
||||
Options map[string]any `json:"options,omitempty"`
|
||||
}
|
||||
|
||||
type chatResponseBody struct {
|
||||
Model string `json:"model"`
|
||||
Message chatMessage `json:"message"`
|
||||
Done bool `json:"done"`
|
||||
DoneReason string `json:"done_reason"`
|
||||
PromptEvalCount int `json:"prompt_eval_count"`
|
||||
EvalCount int `json:"eval_count"`
|
||||
Error string `json:"error"`
|
||||
Model string `json:"model"`
|
||||
Message chatMessage `json:"message"`
|
||||
Done bool `json:"done"`
|
||||
DoneReason string `json:"done_reason"`
|
||||
PromptEvalCount int `json:"prompt_eval_count"`
|
||||
EvalCount int `json:"eval_count"`
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
func (p *Provider) do(ctx context.Context, path string, body any, out any) error {
|
||||
|
||||
@@ -90,10 +90,10 @@ type Code string
|
||||
const (
|
||||
CodeInvalidRequest Code = "invalid_request"
|
||||
CodeTimeout Code = "timeout"
|
||||
CodeUnavailable Code = "unavailable"
|
||||
CodeRateLimited Code = "rate_limited"
|
||||
CodeModelNotFound Code = "model_not_found"
|
||||
CodeUpstream Code = "upstream_error"
|
||||
CodeUnavailable Code = "unavailable"
|
||||
CodeRateLimited Code = "rate_limited"
|
||||
CodeModelNotFound Code = "model_not_found"
|
||||
CodeUpstream Code = "upstream_error"
|
||||
)
|
||||
|
||||
// Error ist das einheitliche Fehlerformat aller Provider-Implementierungen (AK3).
|
||||
|
||||
Reference in new issue
Block a user