Skip to content

Commit e9669bc

Browse files
committed
refactor: remove unused openai imports and model configuration
1 parent b35feff commit e9669bc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

examples/mcp/get-all-mcp-tools-example.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ import {
66
withTrace,
77
} from '@openai/agents';
88
import * as path from 'node:path';
9-
import { createOpenAI } from '@ai-sdk/openai';
10-
import { aisdk } from '@openai/agents-extensions';
11-
12-
const openai = createOpenAI({
13-
baseURL: 'https://api.moonshot.cn/v1',
14-
apiKey: process.env.MOONSHOT_API_KEY,
15-
});
16-
17-
const model = aisdk(openai('kimi-k2-turbo-preview'));
189

1910
async function main() {
2011
const samplesDir = path.join(__dirname, 'sample_files');
@@ -74,7 +65,6 @@ async function main() {
7465
instructions:
7566
'Use the available tools to help the user with file operations.',
7667
tools: allTools, // Use pre-fetched tools instead of mcpServers
77-
model,
7868
});
7969

8070
// Test the agent

0 commit comments

Comments
 (0)