mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 22:01:41 +00:00
Add service tier option for OpenAI Responses API (#672)
* add service tier option for OpenAI responses * add serviceTier option for OpenAI Responses requests
This commit is contained in:
parent
7cad705a15
commit
7b79e8ec51
2 changed files with 9 additions and 0 deletions
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Added `serviceTier` option for OpenAI Responses requests ([#672](https://github.com/badlogic/pi-mono/pull/672) by [@markusylisiurunen](https://github.com/markusylisiurunen))
|
||||||
|
|
||||||
## [0.44.0] - 2026-01-12
|
## [0.44.0] - 2026-01-12
|
||||||
|
|
||||||
## [0.43.0] - 2026-01-11
|
## [0.43.0] - 2026-01-11
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ function shortHash(str: string): string {
|
||||||
export interface OpenAIResponsesOptions extends StreamOptions {
|
export interface OpenAIResponsesOptions extends StreamOptions {
|
||||||
reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
|
reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
|
||||||
reasoningSummary?: "auto" | "detailed" | "concise" | null;
|
reasoningSummary?: "auto" | "detailed" | "concise" | null;
|
||||||
|
serviceTier?: ResponseCreateParamsStreaming["service_tier"];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -373,6 +374,10 @@ function buildParams(model: Model<"openai-responses">, context: Context, options
|
||||||
params.temperature = options?.temperature;
|
params.temperature = options?.temperature;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options?.serviceTier !== undefined) {
|
||||||
|
params.service_tier = options.serviceTier;
|
||||||
|
}
|
||||||
|
|
||||||
if (context.tools) {
|
if (context.tools) {
|
||||||
params.tools = convertTools(context.tools);
|
params.tools = convertTools(context.tools);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue