1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27package examples
import (
"testing"
)
func TestChat(t *testing.T) {
err := Chat()
if err != nil {
t.Errorf("Chat returned an error: %v", err)
}
}
func TestChatStreaming(t *testing.T) {
err := ChatStreaming()
if err != nil {
t.Errorf("ChatStreaming returned an error: %v", err)
}
}
func TestChatStreamingWithImages(t *testing.T) {
err := ChatStreamingWithImages()
if err != nil {
t.Errorf("ChatStreamingWithImages returned an error: %v", err)
}
}