Skip to content

Commit

Permalink
#29: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger12 committed Dec 20, 2023
1 parent f54f300 commit 843997d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/providers/openai/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ func (c *Client) CreateChatResponse(ctx context.Context, r *ChatRequest) (*ChatR
}
}

resp, err := c.createChatHttp(r)
_ = ctx // keep this for future use

resp, err := c.createChatHTTP(r)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -230,7 +232,7 @@ func (c *Client) createChatHertz(ctx context.Context, payload *ChatRequest) (*Ch
}
*/

func (c *Client) createChatHttp(payload *ChatRequest) (*ChatResponse, error) {
func (c *Client) createChatHTTP(payload *ChatRequest) (*ChatResponse, error) {
slog.Info("running createChatHttp")

if payload.StreamingFunc != nil {
Expand Down
2 changes: 2 additions & 0 deletions pkg/providers/openai/openai_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
func TestOpenAIClient(t *testing.T) {
// Initialize the OpenAI client

_ = t

poolName := "default"
modelName := "gpt-3.5-turbo"

Expand Down

0 comments on commit 843997d

Please sign in to comment.