Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
635 changes: 207 additions & 428 deletions core/providers/gemini/chat.go

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions core/providers/gemini/embedding.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@ func (request *GeminiGenerationRequest) ToBifrostEmbeddingRequest() *schemas.Bif

provider, model := schemas.ParseModelString(request.Model, schemas.Gemini)

if provider == schemas.Vertex && !request.IsEmbedding {
// Add google/ prefix if not already present and model is not a custom fine-tuned model
if !schemas.IsAllDigitsASCII(model) && !strings.HasPrefix(model, "google/") {
model = "google/" + model
}
}

// Create the embedding request
bifrostReq := &schemas.BifrostEmbeddingRequest{
Provider: provider,
Expand Down
Loading