Skip to content

Commit

Permalink
#61: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger12 committed Jan 5, 2024
1 parent 8026dfd commit f463344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/providers/cohere/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ func (c *Client) doChatRequest(ctx context.Context, payload *ChatRequest) (*sche
c.telemetry.Logger.Error("failed to parse openai chat response", zap.Error(err))
return nil, err
}

// Map response to UnifiedChatResponse schema
response := schemas.UnifiedChatResponse{
ID: cohereCompletion.ResponseID,
Created: int(time.Now().UTC().Unix()), // Cohere doesn't provide this
Provider: providerName,
Router: "chat", // TODO: this will be the router used
Router: "chat", // TODO: this will be the router used
Model: "command-light", // TODO: this needs to come from config or router as Cohere doesn't provide this
Cached: false,
ModelResponse: schemas.ProviderResponse{
Expand Down

0 comments on commit f463344

Please sign in to comment.