Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
fanweixiao committed Mar 22, 2024
1 parent 5d0f1c3 commit c4f2225
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/bridge/ai/provider/cfopenai/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,12 @@ func TestNewProvider(t *testing.T) {
})
})
}

func TestChatCompletions(t *testing.T) {
provider := NewProvider("test_endpoint", "test_api_key", "test_model")

resp, err := provider.GetChatCompletions("test_instruction", "test_base", ai.ChainMessage{}, metadata.M{}, false)

Check failure on line 55 in pkg/bridge/ai/provider/cfopenai/provider_test.go

View workflow job for this annotation

GitHub Actions / build

undefined: ai

Check failure on line 55 in pkg/bridge/ai/provider/cfopenai/provider_test.go

View workflow job for this annotation

GitHub Actions / build

undefined: metadata

assert.NotNil(t, resp)
assert.Errorf(t, err, "no_function_call")
}

0 comments on commit c4f2225

Please sign in to comment.