Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
5a8a4e3
Update client.tsp
glharper Aug 16, 2024
bfe3365
Update chat_completions.tsp
glharper Aug 16, 2024
c819972
Update tspconfig.yaml
glharper Aug 16, 2024
4bc47ae
Update chat_completions.tsp
glharper Aug 16, 2024
0491ed5
Update chat_completions.tsp
glharper Aug 27, 2024
5ef43a1
Update client.tsp
glharper Aug 28, 2024
01059a3
Update client.tsp
glharper Aug 28, 2024
65a2758
Update client.tsp
glharper Aug 28, 2024
14a23cf
Update tspconfig.yaml
glharper Aug 28, 2024
7d64c39
Update tspconfig.yaml
glharper Aug 28, 2024
4dc99b8
Update tspconfig.yaml
glharper Aug 28, 2024
69098f1
Update tspconfig.yaml fix typo
glharper Aug 28, 2024
016b80a
Update client.tsp
glharper Aug 28, 2024
cba2d23
Merge branch 'main' into glharper-java-inference
trangevi Jan 10, 2025
50eac41
Update client.tsp
glharper Jan 24, 2025
4d0913a
Update routes.tsp
glharper Jan 24, 2025
5beef1d
Update routes.tsp
glharper Jan 24, 2025
ac4196a
Update routes.tsp
glharper Jan 24, 2025
1307c7d
updated data-plane for ModelClient
glharper Jan 24, 2025
c6069eb
add warning suppressions to allow compilation
glharper Jan 24, 2025
587744e
formatting changes
glharper Jan 24, 2025
287f734
sync with current data-plane examples
glharper Jan 27, 2025
27bd967
sync examples json with dargilco/ai-model-inference
glharper Jan 27, 2025
80e255d
Merge branch 'main' into glharper-java-inference
glharper Jan 29, 2025
23514a5
Remove config class to see if that fixes java gen
glharper Jan 29, 2025
2d46d8d
Update tspconfig.yaml
glharper Jan 29, 2025
f0aa202
Update client.tsp
glharper Jan 29, 2025
a0e0b91
merge model changes from trangevi/structured-output-java
glharper Jan 31, 2025
91e23a2
Merge branch 'glharper-java-inference' of https://github.com/Azure/az…
glharper Jan 31, 2025
d4c101d
Update client.tsp
glharper Jan 31, 2025
dd22af8
Update client.tsp
glharper Feb 18, 2025
07da174
Update main.tsp
glharper Feb 18, 2025
4277cf4
Update client.tsp
glharper Feb 18, 2025
c8db7c0
Add ChatRequestDeveloperMessage
glharper Feb 19, 2025
e312e05
Update client.tsp
glharper Feb 19, 2025
8f5ad43
readd chatcompletionsoptions as public class
glharper Feb 20, 2025
70d146a
Update @service tag to work with latest TypeSpec version 0.67
srnagar Mar 31, 2025
be446fc
Merge branch 'main' into glharper-java-inference
trangevi Apr 2, 2025
57c0595
Merge from feature branch (#33660)
trangevi Apr 7, 2025
6f25081
Merge branch 'dargilco/ai-model-inference' into glharper-java-inference
trangevi Apr 7, 2025
1143ba6
Update swagger spec
trangevi Apr 7, 2025
328e2c1
Merge branch 'dargilco/ai-model-inference' into glharper-java-inference
trangevi Apr 7, 2025
b13797e
Remove 08-01 api version
trangevi Apr 15, 2025
8eb7cc3
Remove 08-01 swagger spec
trangevi Apr 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion specification/ai/ModelClient/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ namespace Customizations; // The actual name here doesn't matter and is here for
@@access(AI.Model.getChatCompletions, Access.internal);
@@access(AI.Model.getEmbeddings, Access.internal);
@@access(AI.Model.getImageEmbeddings, Access.internal);
@@access(AI.Model.getModelInfo, Access.internal, "python");
@@access(AI.Model.getModelInfo, Access.internal, "python,java");

// Since we made all operator methods internal, we need to explicity
// say we still want the models they use to be public, since they will be used by hand-written operator methods.
@@access(AI.Model.ChatChoice, Access.public);
@@access(AI.Model.ChatCompletions, Access.public);
@@access(AI.Model.ChatCompletionsOptions, Access.public, "java");
@@access(AI.Model.ChatCompletionsToolCall, Access.public);
@@access(AI.Model.ChatCompletionsToolDefinition, Access.public);
@@access(AI.Model.ChatCompletionsNamedToolChoice, Access.public);
Expand Down Expand Up @@ -73,6 +74,7 @@ namespace Customizations; // The actual name here doesn't matter and is here for
@@access(AI.Model.EmbeddingItem, Access.public);
@@access(AI.Model.EmbeddingsResult, Access.public);
@@access(AI.Model.EmbeddingsUsage, Access.public);
@@access(AI.Model.ExtraParameters, Access.public, "java");
@@access(AI.Model.FunctionCall, Access.public);
@@access(AI.Model.FunctionDefinition, Access.public);
@@access(AI.Model.ModelInfo, Access.public);
Expand Down
2 changes: 0 additions & 2 deletions specification/ai/ModelClient/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import "@azure-tools/typespec-azure-core";
import "./routes.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;

#suppress "@azure-tools/typespec-autorest/unsupported-http-auth-scheme"
@useAuth(
Expand Down
8 changes: 8 additions & 0 deletions specification/ai/ModelClient/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ options:
clear-output-folder: true
model-namespace: false
flavor: azure
"@azure-tools/typespec-java":
package-dir: "azure-ai-inference"
namespace: com.azure.ai.inference
partial-update: true
customization-class: customization/src/main/java/InferenceCustomizations.java
enable-sync-stack: true
generate-tests: false
flavor: azure
Loading