test: align apiproxy model harness with path-only workspaces
This commit is contained in:
@@ -156,7 +156,6 @@ describe('Web session model selection', () => {
|
|||||||
const api = createApiProxy(ctx, {
|
const api = createApiProxy(ctx, {
|
||||||
defaultModelSelection: () => ({ provider: 'deepseek-official', model: 'deepseek-chat' }),
|
defaultModelSelection: () => ({ provider: 'deepseek-official', model: 'deepseek-chat' }),
|
||||||
cwd: '/tmp',
|
cwd: '/tmp',
|
||||||
workspaceRoot: '/tmp',
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const result = await api.sessions.prompt(request({
|
const result = await api.sessions.prompt(request({
|
||||||
@@ -203,7 +202,6 @@ describe('Web session model selection', () => {
|
|||||||
const api = createApiProxy(ctx, {
|
const api = createApiProxy(ctx, {
|
||||||
defaultModelSelection: () => ({ provider: 'deepseek-official', model: 'deepseek-chat' }),
|
defaultModelSelection: () => ({ provider: 'deepseek-official', model: 'deepseek-chat' }),
|
||||||
cwd: '/tmp',
|
cwd: '/tmp',
|
||||||
workspaceRoot: '/tmp',
|
|
||||||
})
|
})
|
||||||
const image = {
|
const image = {
|
||||||
type: 'image' as const,
|
type: 'image' as const,
|
||||||
@@ -246,7 +244,6 @@ describe('Web session model selection', () => {
|
|||||||
const api = createApiProxy(ctx, {
|
const api = createApiProxy(ctx, {
|
||||||
defaultModelSelection: () => ({ provider: 'deepseek-official', model: 'deepseek-chat' }),
|
defaultModelSelection: () => ({ provider: 'deepseek-official', model: 'deepseek-chat' }),
|
||||||
cwd: '/tmp',
|
cwd: '/tmp',
|
||||||
workspaceRoot: '/tmp',
|
|
||||||
})
|
})
|
||||||
agent.session.append('agent/inbox/spliced', {
|
agent.session.append('agent/inbox/spliced', {
|
||||||
target: 'next-turn',
|
target: 'next-turn',
|
||||||
|
|||||||
Reference in New Issue
Block a user