TBXark / ChatGPT-Telegram-Workers

Deploy your own Telegram ChatGPT bot on Cloudflare Workers with ease.
https://t.me/ChatGPT_Telegram_Workers
MIT License
3.41k stars 819 forks source link

请问如果使用Cloudflare 的WORKER AI? #228

Closed burndown closed 10 months ago

burndown commented 10 months ago

Worker 里已经加上变量了,AI Binding也加上了,怎么设置使用这个llama2 7b? chat_MODEL 直接修改成@cf/meta/llama-2-7b-chat-int8 好像不管用,也没有看到其他地方的开关。

WORKERS_AI_MODEL | @cf/meta/llama-2-7b-chat-int8

Variable name  
AI Workers AI Catalog
TBXark commented 10 months ago

名字设置对了应该可以,具体支持模型列表可以看 https://developers.cloudflare.com/workers-ai/models/text-generation/

burndown commented 10 months ago

名字设置对了应该可以,具体支持模型列表可以看 https://developers.cloudflare.com/workers-ai/models/text-generation/

WORKERS_AI_MODEL 设置了,AI 绑定了,还需要设置CHAT_MODEL么?

burndown commented 10 months ago

搞定了,把变量里,openai的key 和 chat model删了就好了。多谢开发者