Skip to content

Removing unused import and adding java emitter config #304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .typespec.azure/main.tsp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "@typespec/http";
import "@typespec/openapi3";
import "@typespec/openapi";
import "@typespec/versioning";

Expand Down
1 change: 0 additions & 1 deletion .typespec/main.tsp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "@typespec/http";
import "@typespec/openapi3";
import "@typespec/openapi";

import "./administration";
Expand Down
23 changes: 23 additions & 0 deletions .typespec/realtime/java_entrypoint.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import "@typespec/http";
import "@typespec/openapi";

import "./main.tsp";

using TypeSpec.Http;

/** The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details. */
@service({
title: "OpenAI API",
termsOfService: "https://openai.com/policies/terms-of-use",
contact: {
name: "OpenAI Support",
url: "https://help.openai.com",
},
license: {
name: "MIT",
url: "https://github.com/openai/openai-openapi/blob/master/LICENSE",
},
})
@server("https://api.openai.com/v1", "OpenAI Endpoint")
@useAuth(BearerAuth)
namespace OpenAI;
15 changes: 15 additions & 0 deletions .typespec/realtime/tspconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://typespec.io/docs/handbook/configuration/configuration/
# adding entry point exclusive to realtime
options:
"@azure-tools/typespec-java":
package-dir: "azure-ai-openai-realtime"
namespace: "com.azure.ai.openai.realtime"
# partial-update: true
enable-sync-stack: true
generate-tests: false
generate-samples: false
custom-types-subpackage: "implementation.models"
# custom-types: "FunctionCallPreset,FileListResponse,OpenAIPageableListOfBatch"
# customization-class: customization/src/main/java/OpenAICustomizations.java
flavor: azure
# tsp compile .typespec/realtime/client_java.tsp --emit "@azure-tools/typespec-java"