Skip to content
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

upgrade-compiler-version-to-v0.57 #2606

Merged
merged 11 commits into from
Jun 26, 2024

Conversation

qiaozha
Copy link
Member

@qiaozha qiaozha commented Jun 20, 2024

No description provided.

| "Failed"
| "Canceled";
/** Alias for OperationStateOutput */
export type OperationStateOutput = string;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is caused by OperationState has changed from an enum to an open union

@@ -158,6 +158,9 @@
}
}
},
"x-ms-long-running-operation-options": {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -410,7 +410,7 @@ export interface Embedding {
object: "embedding";
/**
* The embedding vector, which is a list of floats. The length of vector depends on the model as\
* listed in the [embedding guide](/docs/guides/embeddings).
* * listed in the [embedding guide](/docs/guides/embeddings).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to figure out why.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue created microsoft/typespec#3646

Comment on lines -302 to -304
return type.nullable
? `((${valueExpr}) === null) ? (${valueExpr}) : (${propSerializer})`
: propSerializer;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this is the right fix for null serializer in Modular. @joheredi @dgetu

/** Options for the generation. */
export interface GenerationOptions {
/** Prompt. */
prompt: string;
}

/** Provides status details for long running operations. */
export interface GenerationResponse {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably need to look into this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tcgc doesn't return this model to us. but since this model is used in the LRO polling result, and we are not really using it in the modular layer, and RLC layer are not using getAllModels, I guess it's fine for us, not sure if it's going to be an issue for other language? @tadelesh could you help confirm?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is a refine for tcgc to filtering core models from this pr: Azure/typespec-azure#962

@@ -658,7 +658,7 @@
],
"x-ms-enum": {
"name": "DataSchema",
"modelAsString": true,
"modelAsString": false,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disableEffectiveModel: true,
usage: UsageFlags.Input
});
if (body.bodyKind === "single") {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bodyParameter now has two kinds as the typespec mfd support https://typespec.io/docs/release-notes/release-2024-06-10#typespechttp. Since we haven't supported mfd in modular yet, I just handle the single kind which is the normal body type here.
/cc @timovv @joheredi

@@ -28,7 +28,7 @@ export function _listSend(

export async function _listDeserialize(
result: OperationsList200Response | OperationsListDefaultResponse,
): Promise<PagedOperation> {
): Promise<OperationListResult> {
Copy link
Member Author

@qiaozha qiaozha Jun 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1320,6 +1320,8 @@ export interface GetTaskFile200Headers {
"ocp-batch-file-mode": string;
/** The length of the file. */
"content-length": number;
/** Type of content */
"content-type": "application/octet-stream";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a bugfix for previous missing content-type headers microsoft/typespec#3643 (comment)

@qiaozha qiaozha marked this pull request as ready for review June 26, 2024 03:59
@qiaozha qiaozha merged commit f409a93 into Azure:main Jun 26, 2024
14 checks passed
@qiaozha qiaozha deleted the upgrade-compiler-version-to-v0.57 branch June 26, 2024 06:05
@qiaozha qiaozha mentioned this pull request Jun 27, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants