From 87423a516b23964637cd21b97c94cfd9f128f390 Mon Sep 17 00:00:00 2001 From: Jonathan Buttner Date: Wed, 15 Oct 2025 13:55:00 -0400 Subject: [PATCH 1/2] Adding headers for openai --- specification/inference/_types/CommonTypes.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index 25d1be939a..a96bdcadb9 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -947,7 +947,7 @@ export class CohereTaskSettings { export class CustomServiceSettings { /** - * Specifies the HTTPS header parameters – such as `Authentication` or `Contet-Type` – that are required to access the custom service. + * Specifies the HTTP header parameters – such as `Authentication` or `Contet-Type` – that are required to access the custom service. * For example: * ``` * "headers":{ @@ -1729,6 +1729,17 @@ export class OpenAITaskSettings { * This information can be used for abuse detection. */ user?: string + /** + * Specifies custom HTTP header parameters. + * For example: + * ``` + * "headers":{ + * "Custom-Header": "Some-Value", + * "Another-Custom-Header": "Another-Value" + * } + * ``` + */ + headers?: UserDefinedValue } export enum OpenAITaskType { From f047a080bcb2038dfdc78e31ce4a64147f97632d Mon Sep 17 00:00:00 2001 From: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com> Date: Mon, 20 Oct 2025 09:06:26 -0400 Subject: [PATCH 2/2] Update specification/inference/_types/CommonTypes.ts Co-authored-by: David Kyle --- specification/inference/_types/CommonTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index a96bdcadb9..0435369c88 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -947,7 +947,7 @@ export class CohereTaskSettings { export class CustomServiceSettings { /** - * Specifies the HTTP header parameters – such as `Authentication` or `Contet-Type` – that are required to access the custom service. + * Specifies the HTTP header parameters – such as `Authentication` or `Content-Type` – that are required to access the custom service. * For example: * ``` * "headers":{