Skip to content

Commit

Permalink
Update chatbotv3.py
Browse files Browse the repository at this point in the history
proxy
  • Loading branch information
liufufa committed Mar 21, 2023
1 parent 2d7ba5f commit f53ec0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chatbotv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(
temperature: float = 0.5,
top_p: float = 1.0,
reply_count: int = 1,
system_prompt: str = "你是全能助手小h,善于解决一切问题",
system_prompt: str = "你是firefox,善于解决一切问题",
) -> None:
"""
Initialize Chatbot with API key (from https://platform.openai.com/account/api-keys)
Expand Down Expand Up @@ -104,7 +104,7 @@ def ask_stream(
self.__truncate_conversation(convo_id=convo_id)
# Get response
response = self.session.post(
"https://api.openai.com/v1/chat/completions",
"https://service-2f6q3v4w-1257441275.sg.apigw.tencentcs.com/v1/chat/completions",
headers={"Authorization": f"Bearer {kwargs.get('api_key', self.api_key)}"},
json={
"model": self.engine,
Expand Down

0 comments on commit f53ec0b

Please sign in to comment.