Skip to content

Commit 8d4dafb

Browse files
Adding headers for openai (#5497) (#5521)
* Adding headers for openai * Update specification/inference/_types/CommonTypes.ts --------- (cherry picked from commit f9b2639) Co-authored-by: David Kyle <[email protected]>
1 parent 0f68d85 commit 8d4dafb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

specification/inference/_types/CommonTypes.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ export class CohereTaskSettings {
947947

948948
export class CustomServiceSettings {
949949
/**
950-
* Specifies the HTTPS header parameters – such as `Authentication` or `Contet-Type` – that are required to access the custom service.
950+
* Specifies the HTTP header parameters – such as `Authentication` or `Content-Type` – that are required to access the custom service.
951951
* For example:
952952
* ```
953953
* "headers":{
@@ -1729,6 +1729,17 @@ export class OpenAITaskSettings {
17291729
* This information can be used for abuse detection.
17301730
*/
17311731
user?: string
1732+
/**
1733+
* Specifies custom HTTP header parameters.
1734+
* For example:
1735+
* ```
1736+
* "headers":{
1737+
* "Custom-Header": "Some-Value",
1738+
* "Another-Custom-Header": "Another-Value"
1739+
* }
1740+
* ```
1741+
*/
1742+
headers?: UserDefinedValue
17321743
}
17331744

17341745
export enum OpenAITaskType {

0 commit comments

Comments
 (0)