Skip to content

Commit

Permalink
#43: Using model name from the config & fixing the provider name
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-glushko committed Jan 9, 2024
1 parent e2df092 commit d4d400d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/providers/cohere/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (c *Client) doChatRequest(ctx context.Context, payload *ChatRequest) (*sche
ID: cohereCompletion.ResponseID,
Created: int(time.Now().UTC().Unix()), // Cohere doesn't provide this
Provider: providerName,
Model: "command-light", // TODO: this needs to come from config or router as Cohere doesn't provide this
Model: c.config.Model,
Cached: false,
ModelResponse: schemas.ProviderResponse{
ResponseID: map[string]string{
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/cohere/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
// TODO: Explore Hertz TLS & resource pooling

const (
providerName = "openai"
providerName = "cohere"
)

// ErrEmptyResponse is returned when the Cohere API returns an empty response.
Expand Down

0 comments on commit d4d400d

Please sign in to comment.