yihong0618 / xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker
MIT License
6.03k stars 839 forks source link

有gpt4的api key, 去代码里改了model 后的参数为gpt4,但是调用时还是gpt3,点解? #379

Closed ggy1021 closed 9 months ago

ggy1021 commented 9 months ago

有gpt4的api key, 去代码里改了model 后的参数为gpt4,但是调用时还是gpt3,点解?

yihong0618 commented 9 months ago

--use_chatgptapi 么?

ggy1021 commented 9 months ago

--use chatgptapi 不稳定,很大概率connect error, --use gpt3 稳定一些,但是两个都改了model部分的参数后,试验一下,后台显示依然都消耗的gpt3的token

yihong0618 commented 9 months ago

use gpt3 不能改 model

ggy1021 commented 9 months ago

20231124-140531 class ChatGPTBot(ChatHistoryMixin, BaseBot):

default_options: ClassVar[dict[str, str]] = {"model": "gpt-4-0314"}
openai_key: str
api_base: str | None = None
proxy: str | None = None
deployment_id: str | None = None
history: list[tuple[str, str]] = dataclasses.field(default_factory=list, init=False)
ggy1021 commented 9 months ago

用这个--use chatgptapi 也改了对应位置的model参数后,用--use chatgptapi 回答成功了,但是看上去依然是gpt3的答案

yihong0618 commented 9 months ago

理论上已经是 3.5 路我们看看

ggy1021 commented 9 months ago

理论上已经是 3.5 路我们看看

是3.5了。

yihong0618 commented 9 months ago

好的我先关了哈