-
Notifications
You must be signed in to change notification settings - Fork 74
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
Generate nullable as type alias and resolve recursive reference in union #2989
base: main
Are you sure you want to change the base?
Changes from all commits
a81900b
16982fb
12a2424
710a03c
c40ed27
f46ed19
2c326ee
6ae81ba
efeaaad
789ba00
b78cf21
060d931
f725f13
48f8408
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,7 +118,7 @@ export interface CreateChatCompletionRequest { | |
model: "gpt4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-16k-0613"; | ||
n?: number | null; | ||
presencePenalty?: number | null; | ||
stop?: Stop | null; | ||
stop?: Stop; | ||
stream?: boolean | null; | ||
temperature?: number | null; | ||
topP?: number | null; | ||
|
@@ -151,8 +151,8 @@ export interface CreateCompletionRequest { | |
model: "babbage-002" | "davinci-002" | "text-davinci-003" | "text-davinci-002" | "text-davinci-001" | "code-davinci-002" | "text-curie-001" | "text-babbage-001" | "text-ada-001"; | ||
n?: number | null; | ||
presencePenalty?: number | null; | ||
prompt: Prompt | null; | ||
stop?: Stop | null; | ||
prompt: Prompt; | ||
stop?: Stop; | ||
stream?: boolean | null; | ||
suffix?: string | null; | ||
temperature?: number | null; | ||
|
@@ -797,10 +797,16 @@ export interface OpenAIFile { | |
} | ||
|
||
// @public | ||
export type Prompt = string | string[] | number[] | number[][]; | ||
export type Prompt = Prompt_1 | null; | ||
|
||
// @public | ||
export type Stop = string | string[]; | ||
export type Prompt_1 = string | string[] | number[] | number[][]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i was thinking if we should delivery an alpha verion for keyvalut first. the correct fix without xxx_1 should be non-breaking, but this pr would introduce a breaking. |
||
|
||
// @public | ||
export type Stop = Stop_1 | null; | ||
|
||
// @public | ||
export type Stop_1 = string | string[]; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this because tcgc wrongly tagged this union type as name type but it should be an anoymous one?