8000 Update utils.py · aiwaves-cn/RecurrentGPT@ec189b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
bug fix and proxy update
  • Loading branch information
MichaelZhouwang authored Jun 19, 2023
1 parent c9e7dca commit ec189b9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ def get_api_response(content: str, max_tokens=None):
temperature=0.5


response = openai.ChatCompletion.create(
model='gpt-3.5-turbo-16k-0613',
messages=[{
'role': 'system',
'content': 'You are a helpful and creative assistant for writing novel.'
}, {
'role': 'user',
'content': content,
}],
temperature=0.5,
max_tokens=max_tokens
)
response = None
# response = openai.ChatCompletion.create(
# model='gpt-3.5-turbo-16k-0613',
# messages=[{
# 'role': 'system',
# 'content': 'You are a helpful and creative assistant for writing novel.'
# }, {
# 'role': 'user',
# 'content': content,
# }],
# temperature=0.5,
# max_tokens=max_tokens
# )
# response = None
messages = [
SystemMessage(content="You are a helpful and creative assistant for writing novel."),
HumanMessage(content=content)
Expand Down
3774

0 comments on commit ec189b9

Please sign in to comment.
0