[GH-ISSUE #3021] Azure OpenAI o1 Model with AnythingLLM #1933

Closed
opened 2026-02-22 18:27:18 -05:00 by yindo · 0 comments
Owner

Originally created by @MoustafaAMahmoud on GitHub (Jan 24, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3021

Originally assigned to: @timothycarambat on GitHub.

I am trying to configure the o1 model with AnythingLLM, but I got this error

Model o1 is enabled only for api versions 2024-12-01-preview and later

I can't find option to configure the api versions/

https://github.com/Mintplex-Labs/anything-llm/blob/604e7c9218ec72fc2b10e946cc3cae8ecb7d97fe/server/utils/AiProviders/azureOpenAi/index.js#L19-L22

We need to modify that section of code to this

this.openai = new OpenAIClient(
      process.env.AZURE_OPENAI_ENDPOINT,
      new AzureKeyCredential(process.env.AZURE_OPENAI_KEY),
      {
        apiVersion: "2024-01-01-preview",
      }
    );
Originally created by @MoustafaAMahmoud on GitHub (Jan 24, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3021 Originally assigned to: @timothycarambat on GitHub. I am trying to configure the o1 model with AnythingLLM, but I got this error ```sh Model o1 is enabled only for api versions 2024-12-01-preview and later ``` I can't find option to configure the api versions/ https://github.com/Mintplex-Labs/anything-llm/blob/604e7c9218ec72fc2b10e946cc3cae8ecb7d97fe/server/utils/AiProviders/azureOpenAi/index.js#L19-L22 We need to modify that section of code to this ```js this.openai = new OpenAIClient( process.env.AZURE_OPENAI_ENDPOINT, new AzureKeyCredential(process.env.AZURE_OPENAI_KEY), { apiVersion: "2024-01-01-preview", } ); ```
yindo added the enhancementIntegration Request labels 2026-02-22 18:27:18 -05:00
yindo closed this issue 2026-02-22 18:27:18 -05:00
yindo changed title from Azure OpenAI o1 Model with AnythingLLM to [GH-ISSUE #3021] Azure OpenAI o1 Model with AnythingLLM 2026-06-05 14:43:31 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1933