Documentation
¶
Index ¶
Constants ¶
View Source
const ConnectionMessage = "Could not connect to the service. Check your network and macOS proxy settings, then retry."
View Source
const TimeoutMessage = "The connection timed out. Check your network and macOS proxy settings, then retry."
Messages deliberately omit URLs, credentials, and server response bodies.
Variables ¶
This section is empty.
Functions ¶
func SupportsLanguage ¶
Types ¶
type AIResponseError ¶
type AIResponseError struct {
Diagnostic ResponseDiagnostic
// contains filtered or unexported fields
}
func (*AIResponseError) Error ¶
func (e *AIResponseError) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client owns only network connections, throttling and anonymous Youdao state. Reuse one client per app. It never reads or saves settings, keys or documents.
func (*Client) TestConnection ¶
TestConnection sends only the fixed sample Hello. when the caller requests it.
type Options ¶
type Options struct{ GoogleURL, GoogleCloudURL, YoudaoURL string }
Options overrides endpoints for an explicitly selected compatible service. Empty values use the existing Google/Youdao endpoints.
type ResponseDiagnostic ¶
type ResponseDiagnostic struct {
Category string `json:"category"`
FinishReason string `json:"finish_reason"`
Truncation string `json:"truncation"`
}
ResponseDiagnostic contains only fixed categories. It never retains provider responses, prompts, document text, endpoint URLs, model names or API keys.
func (ResponseDiagnostic) Valid ¶
func (d ResponseDiagnostic) Valid() bool
Click to show internal directories.
Click to hide internal directories.