Skip to content

Commit 451384b

Browse files
bchapuisclaude
andcommitted
Fix OAuth provider count test and apply formatting fixes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0120577 commit 451384b

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

apps/api/src/durable-objects/agent-runner.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -707,13 +707,7 @@ export class AgentRunner extends Agent<Bindings, AgentRunnerState> {
707707
case "openai":
708708
return this.callOpenAI(model, instructions, messages, tools, schema);
709709
case "workers-ai":
710-
return this.callWorkersAI(
711-
model,
712-
instructions,
713-
messages,
714-
tools,
715-
schema
716-
);
710+
return this.callWorkersAI(model, instructions, messages, tools, schema);
717711
default:
718712
throw new Error(`Unsupported provider: ${provider}`);
719713
}

apps/api/src/oauth/oauth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe("OAuth Module", () => {
3030

3131
it("should return all providers", () => {
3232
const providers = getAllProviders();
33-
expect(providers).toHaveLength(6);
33+
expect(providers).toHaveLength(7);
3434
});
3535
});
3636

packages/runtime/src/nodes/openai/execute-openai-model.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ export async function executeOpenAIModel(
3838

3939
// Build response_format when a schema is provided
4040
const responseFormat =
41-
schemaInput &&
42-
typeof schemaInput === "object" &&
43-
"fields" in schemaInput
41+
schemaInput && typeof schemaInput === "object" && "fields" in schemaInput
4442
? {
4543
type: "json_schema" as const,
4644
json_schema: {

0 commit comments

Comments
 (0)