We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3d99b8 commit bd03407Copy full SHA for bd03407
aiscript-vm/src/ai/mod.rs
@@ -112,7 +112,7 @@ impl AiConfig {
112
})
113
}
114
115
- m => Err(format!("Unsupported model `{m}`.")),
+ m => Err(format!("Unsupported model '{m}'.")),
116
117
} else {
118
// Default is OpenAI model
tests/integration/ai/prompt.ai
@@ -1,3 +1,3 @@
1
let p = "What is AIScript?";
2
let a = prompt p;
3
-print(a); // expect: AI: What is AIScript?
+print(a); // expect: AI: What is AIScript?
tests/integration/ai/unsupported_model.ai
@@ -0,0 +1,6 @@
+// ignore
+let a = prompt {
+ input: "hi",
4
+ model: "invalid-model",
5
+};
6
+// expect runtime error: Unsupported model 'invalid-model'.
0 commit comments