Commit Graph

15 Commits

Author SHA1 Message Date
sam hoang
f745f080f4 feat: add explicit Azure OpenAI flag and setup memory bank docs
- Add openAiUseAzure flag to force Azure OpenAI client initialization
- Add "Use Azure" checkbox in API settings UI

This change improves Azure OpenAI configuration flexibility by allowing users to explicitly opt-in to Azure client, regardless of the base URL pattern.
2025-01-24 00:14:55 +07:00
sam hoang
d1a65f4de0 refactor: rename openAiCusModelInfo to openAiCustomModelInfo for better clarity
- Rename openAiCusModelInfo to openAiCustomModelInfo across all files for better readability
- Update related variable names and references to maintain consistency
- Affects OpenAI provider, ClineProvider, WebviewMessage, API interfaces, and UI components
2025-01-21 23:06:07 +07:00
sam hoang
d50e075c75 feat(openai): add custom model info configuration
Adds support for configuring custom OpenAI-compatible model capabilities and pricing, including:

Max output tokens
Context window size
Image/computer use support
Input/output token pricing
Cache read/write pricing
2025-01-21 22:46:21 +07:00
Matt Rubens
a13da25dd1 Deepseek fixes 2025-01-20 11:41:38 -05:00
Matt Rubens
60a0a824b9 Prettier backfill 2025-01-17 14:11:28 -05:00
Matt Rubens
4027e1c10c Add non-streaming completePrompt to all providers 2025-01-13 17:20:06 -05:00
Matt Rubens
2cdfff02c0 Streaming checkbox for OpenAI-compatible providers 2025-01-05 20:34:54 -05:00
Matt Rubens
6290f90fa5 Refactor 2024-12-29 12:20:35 -08:00
Matt Rubens
2cfd76c305 Add 'Include stream options' checkbox for OpenAI-compatible providers 2024-12-12 09:20:58 -05:00
Matt Rubens
156cab8cbc Fix: Add checkbox for stream_options in OpenAI-compatible providers 2024-12-12 08:58:38 -05:00
lloydchang
9abe3f6916 fix(openai.ts): default to an empty string if undefined
Change:

const urlHost = new URL(this.options.openAiBaseUrl).host;

To:

const urlHost = new URL(this.options.openAiBaseUrl ?? "").host;

because the nullish coalescing operator (??) to default to an empty string if this.options.openAiBaseUrl is undefined.

It ensures that the URL constructor always receives a valid string.
2024-12-11 02:37:26 -08:00
lloydchang
7c870733a1 Fix code scanning alert no. 1: Incomplete URL substring sanitization
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-12-11 02:18:04 -08:00
Saoud Rizwan
06ccaf6f67 Implement streaming for all providers 2024-10-09 01:49:55 -04:00
Saoud Rizwan
d81002decc Refactor Azure OpenAI default version 2024-09-24 12:45:24 -04:00
Saoud Rizwan
a009c84597 Refactor API 2024-09-24 10:43:31 -04:00