-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
4,239 additions
and
1,335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 20 additions & 20 deletions
40
integ-tests/baml_src/test-files/functions/output/map-literal-union-key.baml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
// function InOutLiteralStringUnionMapKey( | ||
// i1: map<"one" | "two" | ("three" | "four"), string>, | ||
// i2: map<"one" | "two" | ("three" | "four"), string> | ||
// ) -> map<"one" | "two" | ("three" | "four"), string> { | ||
// client "openai/gpt-4o" | ||
// prompt #" | ||
// Merge these: | ||
function InOutLiteralStringUnionMapKey( | ||
i1: map<"one" | "two" | ("three" | "four"), string>, | ||
i2: map<"one" | "two" | ("three" | "four"), string> | ||
) -> map<"one" | "two" | ("three" | "four"), string> { | ||
client "openai/gpt-4o" | ||
prompt #" | ||
Merge these: | ||
|
||
// {{i1}} | ||
{{i1}} | ||
|
||
// {{i2}} | ||
{{i2}} | ||
|
||
// {{ ctx.output_format }} | ||
// "# | ||
// } | ||
{{ ctx.output_format }} | ||
"# | ||
} | ||
|
||
// function InOutSingleLiteralStringMapKey(m: map<"key", string>) -> map<"key", string> { | ||
// client "openai/gpt-4o" | ||
// prompt #" | ||
// Return the same map you were given: | ||
function InOutSingleLiteralStringMapKey(m: map<"key", string>) -> map<"key", string> { | ||
client "openai/gpt-4o" | ||
prompt #" | ||
Return the same map you were given: | ||
|
||
// {{m}} | ||
{{m}} | ||
|
||
// {{ ctx.output_format }} | ||
// "# | ||
// } | ||
{{ ctx.output_format }} | ||
"# | ||
} |
Oops, something went wrong.