diff --git a/api.md b/api.md index 0ea5eae95..67ff66dec 100644 --- a/api.md +++ b/api.md @@ -2,7 +2,7 @@ Types: -- FunctionObject +- FunctionDefinition - FunctionParameters # Completions diff --git a/src/index.ts b/src/index.ts index 152ee3b03..d91a608cb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -297,7 +297,7 @@ export namespace OpenAI { export import Beta = API.Beta; - export import FunctionObject = API.FunctionObject; + export import FunctionDefinition = API.FunctionDefinition; export import FunctionParameters = API.FunctionParameters; } diff --git a/src/resources/beta/assistants/assistants.ts b/src/resources/beta/assistants/assistants.ts index 949d305af..052a3d666 100644 --- a/src/resources/beta/assistants/assistants.ts +++ b/src/resources/beta/assistants/assistants.ts @@ -164,7 +164,7 @@ export namespace Assistant { } export interface Function { - function: Shared.FunctionObject; + function: Shared.FunctionDefinition; /** * The type of tool being defined: `function` @@ -249,7 +249,7 @@ export namespace AssistantCreateParams { } export interface AssistantToolsFunction { - function: Shared.FunctionObject; + function: Shared.FunctionDefinition; /** * The type of tool being defined: `function` @@ -328,7 +328,7 @@ export namespace AssistantUpdateParams { } export interface AssistantToolsFunction { - function: Shared.FunctionObject; + function: Shared.FunctionDefinition; /** * The type of tool being defined: `function` diff --git a/src/resources/beta/threads/runs/runs.ts b/src/resources/beta/threads/runs/runs.ts index 4579214a2..c2fc93a3c 100644 --- a/src/resources/beta/threads/runs/runs.ts +++ b/src/resources/beta/threads/runs/runs.ts @@ -325,7 +325,7 @@ export namespace Run { } export interface AssistantToolsFunction { - function: Shared.FunctionObject; + function: Shared.FunctionDefinition; /** * The type of tool being defined: `function` @@ -391,7 +391,7 @@ export namespace RunCreateParams { } export interface AssistantToolsFunction { - function: Shared.FunctionObject; + function: Shared.FunctionDefinition; /** * The type of tool being defined: `function` diff --git a/src/resources/beta/threads/threads.ts b/src/resources/beta/threads/threads.ts index 0d72b2311..c147cefad 100644 --- a/src/resources/beta/threads/threads.ts +++ b/src/resources/beta/threads/threads.ts @@ -280,7 +280,7 @@ export namespace ThreadCreateAndRunParams { } export interface AssistantToolsFunction { - function: Shared.FunctionObject; + function: Shared.FunctionDefinition; /** * The type of tool being defined: `function` diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index 38a27de67..232dc9c8a 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -486,7 +486,7 @@ export interface ChatCompletionSystemMessageParam { } export interface ChatCompletionTool { - function: Shared.FunctionObject; + function: Shared.FunctionDefinition; /** * The type of the tool. Currently, only `function` is supported. diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 873278df5..d8d9bd0c8 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. -export interface FunctionObject { +export interface FunctionDefinition { /** * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain * underscores and dashes, with a maximum length of 64.