@ottocode/server 0.1.181 → 0.1.182

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ottocode/server",
3
- "version": "0.1.181",
3
+ "version": "0.1.182",
4
4
  "description": "HTTP API server for ottocode",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -29,8 +29,8 @@
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "dependencies": {
32
- "@ottocode/sdk": "0.1.181",
33
- "@ottocode/database": "0.1.181",
32
+ "@ottocode/sdk": "0.1.182",
33
+ "@ottocode/database": "0.1.182",
34
34
  "drizzle-orm": "^0.44.5",
35
35
  "hono": "^4.9.9",
36
36
  "zod": "^4.1.8"
@@ -169,8 +169,8 @@ export async function setupRunner(opts: RunOpts): Promise<SetupResult> {
169
169
  messageId: opts.assistantMessageId,
170
170
  });
171
171
  const wrappedModel = isDebugEnabled()
172
- ? // biome-ignore lint/suspicious/noExplicitAny: OpenRouter provider uses v2 spec
173
- wrapLanguageModel({
172
+ ? wrapLanguageModel({
173
+ // biome-ignore lint/suspicious/noExplicitAny: OpenRouter provider uses v2 spec
174
174
  model: model as any,
175
175
  middleware: devToolsMiddleware(),
176
176
  })
@@ -8,9 +8,7 @@ export async function getZaiInstance(cfg: OttoConfig, model: string) {
8
8
  }
9
9
 
10
10
  export async function getZaiCodingInstance(cfg: OttoConfig, model: string) {
11
- const auth =
12
- (await getAuth('zai', cfg.projectRoot)) ||
13
- (await getAuth('zai-coding', cfg.projectRoot));
11
+ const auth = await getAuth('zai-coding', cfg.projectRoot);
14
12
  const apiKey = auth?.type === 'api' ? auth.key : undefined;
15
13
  return createZaiCodingModel(model, { apiKey });
16
14
  }