Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions agents/__tests__/commander.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ describe('commander agent', () => {
expect(commander.displayName).toBe('Commander')
})

test('uses haiku model', () => {
expect(commander.model).toBe('anthropic/claude-haiku-4.5')
test('uses flash-lite model', () => {
expect(commander.model).toBe('google/gemini-3.1-flash-lite-preview')
})

test('has output mode set to last_message', () => {
Expand Down
2 changes: 1 addition & 1 deletion cli/src/__tests__/e2e-cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function runCLI(
reject(new Error('Process timeout'))
}, TIMEOUT_MS)

proc.on('exit', (code) => {
proc.on('close', (code) => {
clearTimeout(timeout)
resolve({ stdout, stderr, exitCode: code })
})
Expand Down
2 changes: 1 addition & 1 deletion freebuff/web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { siteConfig } from '@/lib/constant'

export async function generateMetadata(): Promise<Metadata> {
const canonicalUrl = env.NEXT_PUBLIC_CODEBUFF_APP_URL
const title = "Freebuff – The Strongest Free Coding Agent"
const title = "Freebuff — the free coding agent"
const description = siteConfig.description

return {
Expand Down
2 changes: 1 addition & 1 deletion freebuff/web/src/lib/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { env } from '@codebuff/common/env'
export const siteConfig = {
title: 'Freebuff',
description:
"The world's strongest free coding agent. Describe what you want, and Freebuff edits your code — no subscription or credits required.",
"The free coding agent. No subscription. No configuration. Start in seconds.",
keywords: () => [
'Freebuff',
'Free Coding Agent',
Expand Down
392 changes: 392 additions & 0 deletions scripts/test-fireworks-long.ts

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion web/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const config = {
'<rootDir>/src/app/api/agents/publish/__tests__',
'<rootDir>/src/app/api/healthz/__tests__',
'<rootDir>/src/app/api/stripe/webhook/__tests__',
'<rootDir>/src/app/api/orgs/.*/billing/__tests__',
'<rootDir>/src/app/api/orgs/.*/billing/.*__tests__',
'<rootDir>/src/app/api/user/billing-portal/__tests__',
'<rootDir>/src/app/api/auth/cli/logout/__tests__/logout.test.ts',
],
}

Expand Down
4 changes: 2 additions & 2 deletions web/src/app/api/v1/chat/completions/_post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ export async function postChatCompletions(params: {
if (bodyStream) {
// Streaming request — route to SiliconFlow/CanopyWave/Fireworks for supported models
const useSiliconFlow = false // isSiliconFlowModel(typedBody.model)
const useCanopyWave = false // isCanopyWaveModel(typedBody.model)
const useFireworks = isFireworksModel(typedBody.model)
const useCanopyWave = isCanopyWaveModel(typedBody.model)
const useFireworks = false // isFireworksModel(typedBody.model)
const stream = useSiliconFlow
? await handleSiliconFlowStream({
body: typedBody,
Expand Down
3 changes: 2 additions & 1 deletion web/src/llm-api/fireworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const fireworksAgent = new Agent({

/** Map from OpenRouter model IDs to Fireworks model IDs */
const FIREWORKS_MODEL_MAP: Record<string, string> = {
// 'minimax/minimax-m2.5': 'accounts/james-65d217/deployments/qne3jo8v' //'accounts/fireworks/models/minimax-m2p5',
'minimax/minimax-m2.5': 'accounts/fireworks/models/minimax-m2p5',
}

Expand Down Expand Up @@ -525,7 +526,7 @@ function handleStreamChunk({

const reasoningDelta = typeof delta?.reasoning_content === 'string' ? delta.reasoning_content
: typeof delta?.reasoning === 'string' ? delta.reasoning
: ''
: ''
if (state.reasoningText.length < MAX_BUFFER_SIZE) {
state.reasoningText += reasoningDelta
if (state.reasoningText.length >= MAX_BUFFER_SIZE) {
Expand Down
Loading