Skip to content

Commit 912ca0a

Browse files
committed
chore: provider自定义请求链接
1 parent 4daa4d1 commit 912ca0a

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

packages/tiny-remoter-template/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
},
1111
"dependencies": {
1212
"vue": "^3.5.24",
13-
"@opentiny/next-sdk": "^0.1.12",
14-
"@opentiny/next-remoter": "^0.0.7",
13+
"@opentiny/next-sdk": "^0.1.13",
14+
"@opentiny/next-remoter": "^0.0.8",
1515
"ollama-ai-provider-v2": "^1.5.4"
1616
},
1717
"devDependencies": {

packages/tiny-remoter-template/src/App.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ const AGENT_ROOT = 'https://agent.opentiny.design/api/v1/webmcp-trial/'
2020
2121
const llmConfig = {
2222
model: 'deepseek-r1:1.5b',
23-
baseURL: 'http://localhost:11434/api',
24-
providerType: createOllama
23+
llm: createOllama({
24+
baseURL: 'http://localhost:11434/api',
25+
fetch: (...args) => {
26+
args[0] = args[0] + 'custom-endpoint' // 使用自定义的 Ollama 端点
27+
console.log('Ollama fetch args:', ...args)
28+
return fetch(...args)
29+
}
30+
})
2531
}
2632
2733
const [serverTransport, clientTransport] = createMessageChannelPairTransport()

pnpm-lock.yaml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)