🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
GPT4 instead of GPT-3.5
  • Loading branch information
santiadavani committed Sep 15, 2023
commit fc551d4a2d34a761a90453562960286f108fa326
3 changes: 2 additions & 1 deletion pgml-apps/pgml-chat/pgml_chat/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ async def generate_response(
openai.api_key = openai_api_key
log.debug("Generating response from OpenAI API: " + str(messages))
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo-16k",
# model="gpt-3.5-turbo-16k",
model="gpt-4",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who's paying for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OPENAI_API_KEY is an environment variable. User pays for it.

messages=messages,
temperature=temperature,
max_tokens=max_tokens,
Expand Down