Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileAudioWav = "wav" FileAudioMp3 = "mp3" FileAudioM4a = "m4a" FileAudioOgg = "ogg" FileAudioFlac = "flac" FileAudioAac = "aac" FileAudioMp4 = "mp4" FileImagePng = "png" FileImageJpg = "jpg" FileDataTypeUrl = "url" FileDataTypePath = "path" FileDataTypeBase64 = "base64" )
View Source
const ( AppName = "aog" BaseDownloadURL = "https://smartvision-aipc-open.oss-cn-hangzhou.aliyuncs.com/aog" UrlDirPathWindows = "/windows" UrlDirPathLinux = "/linux" UrlDirPathMacOS = "/mac" URLDirPathIcon = "/icon" )
Application information
View Source
const ( RecommendModel = "deepseek-r1:7b" DefaultChatModelName = "deepseek-r1:7b" DefaultEmbedModelName = "bge-m3:567m" DefaultTextToImageModel = "OpenVINO/stable-diffusion-v1-5-fp16-ov" DefaultSpeechToTextModel = "NamoLi/whisper-large-v3-ov" DefaultTextToSpeechModel = "NamoLi/speecht5-tts" DefaultImageToImageModel = "wanx2.1-imageedit" DefaultImageToVideoModel = "wan2.2-i2v-plus" )
model related
View Source
const ( DefaultHTTPPort = "16688" DefaultHost = "127.0.0.1" DefaultHTTPSPort = "443" DefaultHTTPPort80 = "80" )
Network related
View Source
const ( // Data size units Byte = 1 // Decimal units Thousand = 1000 Million = Thousand * 1000 Billion = Million * 1000 // Byte units (decimal) KiloByte = Byte * 1000 MegaByte = KiloByte * 1000 GigaByte = MegaByte * 1000 TeraByte = GigaByte * 1000 // Byte units (binary) KibiByte = Byte * 1024 MebiByte = KibiByte * 1024 GibiByte = MebiByte * 1024 )
Data format constants
View Source
const ( RemoteDSURL = "https://api.deepseek.com/chat/completions" ProviderStatusHealthy = "healthy" ProviderStatusUnhealthy = "unhealthy" ServiceStatusHealthy = "healthy" ServiceStatusUnhealthy = "unhealthy" ProviderScopeSystem = "system" )
View Source
const ( ProtocolHTTP = "HTTP" ProtocolHTTPS = "HTTPS" ProtocolGRPC = "GRPC" ProtocolGRPC_STREAM = "GRPC_STREAM" ExposeProtocolHTTP = "HTTP" ExposeProtocolWEBSOCKET = "WEBSOCKET" )
Variables ¶
View Source
var ( SupportFileDataType = []string{FileDataTypeUrl, FileDataTypePath, FileDataTypeBase64} SupportAudioType = []string{FileAudioWav, FileAudioMp3} )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.