@@ -55,7 +55,7 @@ func TestOpenAPISchema(t *testing.T) {
55
55
ChatBasePath : "/chat" ,
56
56
AllowedHosts : []string {"*" },
57
57
AllowedOrigins : []string {"*" },
58
- InteractionType : types .CLIInteractionType ,
58
+ InteractionType : types .InteractionTypeCLI ,
59
59
})
60
60
require .NoError (t , err )
61
61
currentSchemaStr := srv .GetOpenAPI ()
@@ -108,7 +108,7 @@ func TestServer_redirectToChat(t *testing.T) {
108
108
ChatBasePath : tc .chatBasePath ,
109
109
AllowedHosts : []string {"*" },
110
110
AllowedOrigins : []string {"*" },
111
- InteractionType : types .CLIInteractionType ,
111
+ InteractionType : types .InteractionTypeCLI ,
112
112
})
113
113
require .NoError (t , err )
114
114
tsServer := httptest .NewServer (s .Handler ())
@@ -273,7 +273,7 @@ func TestServer_AllowedHosts(t *testing.T) {
273
273
ChatBasePath : "/chat" ,
274
274
AllowedHosts : tc .allowedHosts ,
275
275
AllowedOrigins : []string {"https://example.com" }, // Set a default to isolate host testing
276
- InteractionType : types .CLIInteractionType ,
276
+ InteractionType : types .InteractionTypeCLI ,
277
277
})
278
278
if tc .validationErrorMsg != "" {
279
279
require .Error (t , err )
@@ -357,7 +357,7 @@ func TestServer_CORSPreflightWithHosts(t *testing.T) {
357
357
ChatBasePath : "/chat" ,
358
358
AllowedHosts : tc .allowedHosts ,
359
359
AllowedOrigins : []string {"*" }, // Set wildcard origins to isolate host testing
360
- InteractionType : types .CLIInteractionType ,
360
+ InteractionType : types .InteractionTypeCLI ,
361
361
})
362
362
require .NoError (t , err )
363
363
tsServer := httptest .NewServer (s .Handler ())
@@ -517,7 +517,7 @@ func TestServer_CORSOrigins(t *testing.T) {
517
517
ChatBasePath : "/chat" ,
518
518
AllowedHosts : []string {"*" }, // Set wildcard to isolate CORS testing
519
519
AllowedOrigins : tc .allowedOrigins ,
520
- InteractionType : types .CLIInteractionType ,
520
+ InteractionType : types .InteractionTypeCLI ,
521
521
})
522
522
if tc .validationErrorMsg != "" {
523
523
require .Error (t , err )
@@ -598,7 +598,7 @@ func TestServer_CORSPreflightOrigins(t *testing.T) {
598
598
ChatBasePath : "/chat" ,
599
599
AllowedHosts : []string {"*" }, // Set wildcard to isolate CORS testing
600
600
AllowedOrigins : tc .allowedOrigins ,
601
- InteractionType : types .CLIInteractionType ,
601
+ InteractionType : types .InteractionTypeCLI ,
602
602
})
603
603
require .NoError (t , err )
604
604
tsServer := httptest .NewServer (s .Handler ())
@@ -650,7 +650,7 @@ func TestServer_SSEMiddleware_Events(t *testing.T) {
650
650
ChatBasePath : "/chat" ,
651
651
AllowedHosts : []string {"*" },
652
652
AllowedOrigins : []string {"*" },
653
- InteractionType : types .CLIInteractionType ,
653
+ InteractionType : types .InteractionTypeCLI ,
654
654
})
655
655
require .NoError (t , err )
656
656
tsServer := httptest .NewServer (srv .Handler ())
0 commit comments