mirror of
https://github.com/usememos/memos.git
synced 2026-11-24 04:49:10 +01:00
21 lines
459 B
Go
21 lines
459 B
Go
package ai
|
|
|
|
// ProviderType identifies an AI provider implementation.
|
|
type ProviderType string
|
|
|
|
const (
|
|
// ProviderOpenAI is OpenAI's hosted API.
|
|
ProviderOpenAI ProviderType = "OPENAI"
|
|
// ProviderGemini is Google's Gemini API.
|
|
ProviderGemini ProviderType = "GEMINI"
|
|
)
|
|
|
|
// ProviderConfig configures a callable AI provider connection.
|
|
type ProviderConfig struct {
|
|
ID string
|
|
Title string
|
|
Type ProviderType
|
|
Endpoint string
|
|
APIKey string
|
|
}
|