From 47cc8d20fef1cd1f54786fb5b0b0234b946bef43 Mon Sep 17 00:00:00 2001 From: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com> Date: Mon, 20 Oct 2025 10:09:38 -0400 Subject: [PATCH] Adding headers for openai (#5497) * Adding headers for openai * Update specification/inference/_types/CommonTypes.ts Co-authored-by: David Kyle --------- Co-authored-by: David Kyle (cherry picked from commit f9b2639d75d6cd0cb745872d4cee90b113507902) --- 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..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 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 `Content-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 {