Changeset 0.10.4 (#60)
This commit is contained in:
@@ -263,6 +263,7 @@ func (p *OpenAIProvider) ListModels(ctx context.Context, cfg ProviderConfig) ([]
|
||||
|
||||
out = append(out, Model{
|
||||
ID: m.ID,
|
||||
Type: m.Type, // passthrough from API if present (empty → "chat" at sync time)
|
||||
OwnedBy: m.OwnedBy,
|
||||
Capabilities: caps,
|
||||
})
|
||||
@@ -506,6 +507,7 @@ type openaiModelsResponse struct {
|
||||
Data []struct {
|
||||
ID string `json:"id"`
|
||||
OwnedBy string `json:"owned_by"`
|
||||
Type string `json:"type,omitempty"` // Some APIs (e.g. Venice-compat) include model type
|
||||
ContextLength int `json:"context_length,omitempty"` // Ollama, OpenRouter
|
||||
} `json:"data"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user