Skip to content

Conversation

@EurFelux
Copy link
Collaborator

@EurFelux EurFelux commented Oct 25, 2025

What this PR does

Before this PR:

After this PR:

Fixes #10963

Why we need it and why it was done in this way

The following tradeoffs were made:

The following alternatives were considered:

Links to places where the discussion took place:

Breaking changes

If this PR introduces breaking changes, please describe the changes and the impact on users.

Special notes for your reviewer

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note


- Move OpenAI-related types to aiCoreTypes.ts
- Rename FetchChatCompletionOptions to FetchChatCompletionRequestOptions
- Add proper type definitions for service tiers and verbosity
- Improve type guards for service tier checks
…ency

Update parameter name across multiple files to use requestOptions instead of options for better clarity and consistency in API calls
…ype safety

- Remove 'off' option from OpenAISummaryText type and use null instead
- Add migration to convert 'off' values to null
- Add utility function to convert undefined to null
- Update Selector component to handle null/undefined values
- Improve type safety in provider options and reasoning params
@EurFelux EurFelux requested a review from 0xfullex as a code owner October 25, 2025 17:59
actions-user and others added 5 commits October 25, 2025 18:00
Consolidate utility functions into shared package to improve code organization and reuse
Add "off" translation for multiple languages and remove "performance" service tier option from translations
Add comments to explain that undefined is treated as default and null as explicitly off in OpenAIVerbosity and OpenAIServiceTier types. Also update type safety for OpenAIServiceTiers record.
@DeJeune
Copy link
Collaborator

DeJeune commented Oct 25, 2025

Note

This issue/comment/review was translated by Claude.

You can install the @ai-sdk/groq dependency, the officially maintained one should have some input parameter validation


Original Content

可以安装一下 @ai-sdk/groq依赖,官方维护的应该有一些入参校验

@EurFelux
Copy link
Collaborator Author

EurFelux commented Oct 25, 2025

Note

This issue/comment/review was translated by Claude.

I took a look, and the type definitions are not great. reasoningEffort is even a pure string type.


Original Content

看了一下,类型定义不太行,reasoningEffort甚至是纯string类型

@EurFelux EurFelux added this to the v1.7.0 milestone Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants