Changeset 0.10.4 (#60)
This commit is contained in:
@@ -99,9 +99,23 @@ func (p *VeniceProvider) ListModels(ctx context.Context, cfg ProviderConfig) ([]
|
||||
name = m.ID
|
||||
}
|
||||
|
||||
// Normalize Venice type → our model type
|
||||
// Venice returns: "text", "embedding", "image", "code"
|
||||
// We normalize to: "chat", "embedding", "image"
|
||||
modelType := "chat"
|
||||
switch m.Type {
|
||||
case "embedding":
|
||||
modelType = "embedding"
|
||||
case "image":
|
||||
modelType = "image"
|
||||
default:
|
||||
modelType = "chat" // "text", "code", etc. are all chat-capable
|
||||
}
|
||||
|
||||
out = append(out, Model{
|
||||
ID: m.ID,
|
||||
Name: name,
|
||||
Type: modelType,
|
||||
OwnedBy: "venice",
|
||||
Capabilities: caps,
|
||||
Pricing: pricing,
|
||||
|
||||
Reference in New Issue
Block a user