Skip to content

Commit

Permalink
#4: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger12 committed Jan 2, 2024
1 parent 4edb354 commit 2dd1ce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/providers/azureopenai/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package azureopenai

import (
"errors"
"net/http"
"fmt"
"net/http"
"time"

"glide/pkg/telemetry"
Expand Down Expand Up @@ -37,7 +37,7 @@ func NewClient(cfg *Config, tel *telemetry.Telemetry) (*Client, error) {
chatURL := fmt.Sprintf("%s/openai/deployments/%s/chat/completions?api-version=%s", cfg.BaseURL, cfg.Model, cfg.APIVersion)

fmt.Println("chatURL", chatURL)

c := &Client{
baseURL: cfg.BaseURL,
chatURL: chatURL,
Expand Down
4 changes: 2 additions & 2 deletions pkg/providers/azureopenai/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func (p *Params) UnmarshalYAML(unmarshal func(interface{}) error) error {
type Config struct {
BaseURL string `yaml:"base_url" json:"baseUrl" validate:"required"` // The name of your Azure OpenAI Resource (e.g https://glide-test.openai.azure.com/)
ChatEndpoint string `yaml:"chat_endpoint" json:"chatEndpoint"`
Model string `yaml:"model" json:"model" validate:"required"` // The name of your model deployment. You're required to first deploy a model before you can make calls (e.g. glide-gpt-35)
APIVersion string `yaml:"api_version" json:"apiVersion" validate:"required"` // The API version to use for this operation. This follows the YYYY-MM-DD format (e.g 2023-05-15)
Model string `yaml:"model" json:"model" validate:"required"` // The name of your model deployment. You're required to first deploy a model before you can make calls (e.g. glide-gpt-35)
APIVersion string `yaml:"api_version" json:"apiVersion" validate:"required"` // The API version to use for this operation. This follows the YYYY-MM-DD format (e.g 2023-05-15)
APIKey fields.Secret `yaml:"api_key" json:"-" validate:"required"`
DefaultParams *Params `yaml:"default_params,omitempty" json:"defaultParams"`
}
Expand Down

0 comments on commit 2dd1ce4

Please sign in to comment.