mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-05-08 14:14:41 +00:00
feat(llm): add new models for xAI and Google providers
Add 'grok-3-beta' to xAI provider and 'gemini-2.5-flash-preview-04-17' to Google provider. Also, ensure file saving when content is updated in WorkbenchStore and update streaming indicator styling in chat messages.
This commit is contained in:
parent
c08be2f1fb
commit
adcdc8efdf
@ -102,7 +102,7 @@ export const Messages = forwardRef<HTMLDivElement, MessagesProps>(
|
|||||||
})
|
})
|
||||||
: null}
|
: null}
|
||||||
{isStreaming && (
|
{isStreaming && (
|
||||||
<div className="text-center w-full text-bolt-elements-textSecondary i-svg-spinners:3-dots-fade text-4xl mt-4"></div>
|
<div className="text-center w-full text-bolt-elements-item-contentAccent i-svg-spinners:3-dots-fade text-4xl mt-4"></div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -13,6 +13,12 @@ export default class GoogleProvider extends BaseProvider {
|
|||||||
};
|
};
|
||||||
|
|
||||||
staticModels: ModelInfo[] = [
|
staticModels: ModelInfo[] = [
|
||||||
|
{
|
||||||
|
name: 'gemini-2.5-flash-preview-04-17',
|
||||||
|
label: 'Gemini 2.5 Pro Flash',
|
||||||
|
provider: 'Google',
|
||||||
|
maxTokenAllowed: 65536,
|
||||||
|
},
|
||||||
{ name: 'gemini-1.5-flash-latest', label: 'Gemini 1.5 Flash', provider: 'Google', maxTokenAllowed: 8192 },
|
{ name: 'gemini-1.5-flash-latest', label: 'Gemini 1.5 Flash', provider: 'Google', maxTokenAllowed: 8192 },
|
||||||
{
|
{
|
||||||
name: 'gemini-2.0-flash-thinking-exp-01-21',
|
name: 'gemini-2.0-flash-thinking-exp-01-21',
|
||||||
|
@ -13,6 +13,7 @@ export default class XAIProvider extends BaseProvider {
|
|||||||
};
|
};
|
||||||
|
|
||||||
staticModels: ModelInfo[] = [
|
staticModels: ModelInfo[] = [
|
||||||
|
{ name: 'grok-3-beta', label: 'xAI Grok 3 Beta', provider: 'xAI', maxTokenAllowed: 8000 },
|
||||||
{ name: 'grok-beta', label: 'xAI Grok Beta', provider: 'xAI', maxTokenAllowed: 8000 },
|
{ name: 'grok-beta', label: 'xAI Grok Beta', provider: 'xAI', maxTokenAllowed: 8000 },
|
||||||
{ name: 'grok-2-1212', label: 'xAI Grok2 1212', provider: 'xAI', maxTokenAllowed: 8000 },
|
{ name: 'grok-2-1212', label: 'xAI Grok2 1212', provider: 'xAI', maxTokenAllowed: 8000 },
|
||||||
];
|
];
|
||||||
|
@ -513,6 +513,10 @@ export class WorkbenchStore {
|
|||||||
|
|
||||||
this.#editorStore.updateFile(fullPath, data.action.content);
|
this.#editorStore.updateFile(fullPath, data.action.content);
|
||||||
|
|
||||||
|
if (!isStreaming && data.action.content) {
|
||||||
|
await this.saveFile(fullPath);
|
||||||
|
}
|
||||||
|
|
||||||
if (!isStreaming) {
|
if (!isStreaming) {
|
||||||
await artifact.runner.runAction(data);
|
await artifact.runner.runAction(data);
|
||||||
this.resetAllFileModifications();
|
this.resetAllFileModifications();
|
||||||
|
Loading…
Reference in New Issue
Block a user