Skip to content

TinyRemoter组件,如果按如下配置llmConfig,聊天框接收消息报错 #222

@wuming89

Description

@wuming89

复现步骤:
// 1.定义llmConfig变量
const llmConfig = {
llm: createOllama({
baseURL: 'https://agent.opentiny.design/api/v1/ai/chat/completions',
fetch: (...args) => {
const urls = args[0].split('/chat')
urls.pop()
args[0] = urls.join('/chat')
args[1].headers.authorization = 'Bearer sk-trial'
console.log('ollama fetch args:' + args)
return fetch(...args)
}
}),
}

//2.将变量用在组件中

<tiny-remoter
...
:llmConfig="llmConfig"
/>

//3.聊天框接收信息报错

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions