@@ -5,6 +5,7 @@
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed Moonshot Kimi thinking-off requests to send the provider's `thinking: { type: "disabled" }` compatibility parameter ([#5531](https://github.com/earendil-works/pi/issues/5531)).
|
- Fixed Moonshot Kimi thinking-off requests to send the provider's `thinking: { type: "disabled" }` compatibility parameter ([#5531](https://github.com/earendil-works/pi/issues/5531)).
|
||||||
|
- Fixed Azure OpenAI Responses requests to disable server-side response storage ([#5530](https://github.com/earendil-works/pi/issues/5530)).
|
||||||
|
|
||||||
## [0.79.0] - 2026-06-08
|
## [0.79.0] - 2026-06-08
|
||||||
|
|
||||||
|
|||||||
@@ -256,6 +256,7 @@ function buildParams(
|
|||||||
input: messages,
|
input: messages,
|
||||||
stream: true,
|
stream: true,
|
||||||
prompt_cache_key: clampOpenAIPromptCacheKey(options?.sessionId),
|
prompt_cache_key: clampOpenAIPromptCacheKey(options?.sessionId),
|
||||||
|
store: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (options?.maxTokens) {
|
if (options?.maxTokens) {
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ interface CapturedAzureClientOptions {
|
|||||||
|
|
||||||
interface CapturedAzureResponsesPayload {
|
interface CapturedAzureResponsesPayload {
|
||||||
prompt_cache_key?: string;
|
prompt_cache_key?: string;
|
||||||
|
store?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const azureMock = vi.hoisted(() => ({
|
const azureMock = vi.hoisted(() => ({
|
||||||
@@ -144,6 +145,16 @@ describe("azure-openai-responses base URL normalization", () => {
|
|||||||
expect(azureMock.lastParams?.prompt_cache_key).toBe("x".repeat(64));
|
expect(azureMock.lastParams?.prompt_cache_key).toBe("x".repeat(64));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("disables server-side response storage", async () => {
|
||||||
|
const model = getModel("azure-openai-responses", "gpt-4o-mini");
|
||||||
|
await streamAzureOpenAIResponses(model, context, {
|
||||||
|
apiKey: "test-api-key",
|
||||||
|
azureBaseUrl: "https://my-resource.openai.azure.com",
|
||||||
|
}).result();
|
||||||
|
|
||||||
|
expect(azureMock.lastParams?.store).toBe(false);
|
||||||
|
});
|
||||||
|
|
||||||
it("builds correct default URL from AZURE_OPENAI_RESOURCE_NAME", async () => {
|
it("builds correct default URL from AZURE_OPENAI_RESOURCE_NAME", async () => {
|
||||||
process.env.AZURE_OPENAI_RESOURCE_NAME = "my-resource";
|
process.env.AZURE_OPENAI_RESOURCE_NAME = "my-resource";
|
||||||
const model = getModel("azure-openai-responses", "gpt-4o-mini");
|
const model = getModel("azure-openai-responses", "gpt-4o-mini");
|
||||||
|
|||||||
Reference in New Issue
Block a user