Skip to content

Commit c42edce

Browse files
authored
Update OpenAI tspconfig to include Java emitter config (#23774)
* Update OpenAI tspconfig to include Java emitter config * remove unions for embedding options * update docs
1 parent b53cd31 commit c42edce

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

specification/cognitiveservices/OpenAI.Inference/models/embeddings.create.tsp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ model EmbeddingsOptions {
2727
"model"?: string;
2828

2929
@doc("""
30-
Input text to get embeddings for, encoded as a string.
31-
To get embeddings for multiple inputs in a single request, pass an array of strings.
30+
Input texts to get embeddings for, encoded as a an array of strings.
3231
Each input must not exceed 2048 tokens in length.
3332
3433
Unless you are embedding code, we suggest replacing newlines (\\n) in your input with a single space,
3534
as we have observed inferior results when newlines are present.
3635
""")
37-
input: string | string[];
36+
input: string[];
3837
};
3938

4039
@doc("""

specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ options:
1414
"@azure-tools/typespec-csharp":
1515
namespace: "Azure.AI.OpenAI"
1616
clear-output-folder: true
17-
model-namespace: false
17+
model-namespace: false
18+
"@azure-tools/typespec-java":
19+
namespace: "com.azure.ai.openai"
20+
partial-update: true

0 commit comments

Comments
 (0)