Skip to content

Commit

Permalink
#29: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger12 committed Dec 22, 2023
1 parent cda3fc9 commit acac5bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/providers/openai/openaiclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ func Client(poolName string, modelName string, payload []byte) (*ProviderClient,
return nil, fmt.Errorf("failed to read config: %w", err)
}

// Find the pool with the specified name from global config. This may not be necessary
// Find the pool with the specified name from global config. This may not be necessary if details are passed directly in struct
selectedPool, err := findPoolByName(config.Gateway.Pools, poolName)
if err != nil {
return nil, fmt.Errorf("failed to find pool: %w", err)
}

// Find the OpenAI provider params in the selected pool with the specified model. This may not be necessary
// Find the OpenAI provider params in the selected pool with the specified model. This may not be necessary if details are passed directly in struct
selectedProvider, err := findProviderByModel(selectedPool.Providers, providerName, modelName)
if err != nil {
return nil, fmt.Errorf("provider error: %w", err)
Expand Down

0 comments on commit acac5bd

Please sign in to comment.