t.me/xtekky commited on
Commit
d0f5814
1 Parent(s): bd326b3

quora (poe) [gpt-4/3.5] create bot feature fix

Browse files
Files changed (1) hide show
  1. quora/__init__.py +6 -5
quora/__init__.py CHANGED
@@ -67,7 +67,8 @@ class Model:
67
 
68
  models = {
69
  'gpt-3.5-turbo' : 'chinchilla',
70
- 'claude-instant-v1.0': 'a2'
 
71
  }
72
 
73
  if not handle:
@@ -230,7 +231,7 @@ class Account:
230
  class StreamingCompletion:
231
  def create(
232
  model : str = 'gpt-4',
233
- custom_model : str = None,
234
  prompt: str = 'hello world',
235
  token : str = ''):
236
 
@@ -246,7 +247,7 @@ class StreamingCompletion:
246
 
247
  client = PoeClient(token)
248
 
249
- for chunk in client.send_message(models[model], prompt):
250
 
251
  yield PoeResponse({
252
  'id' : chunk["messageId"],
@@ -285,7 +286,7 @@ class Completion:
285
 
286
  client = PoeClient(token)
287
 
288
- for chunk in client.send_message(models[model], prompt):
289
  pass
290
 
291
  return PoeResponse({
@@ -304,4 +305,4 @@ class Completion:
304
  'completion_tokens' : len(chunk["text"]),
305
  'total_tokens' : len(prompt) + len(chunk["text"])
306
  }
307
- })
 
67
 
68
  models = {
69
  'gpt-3.5-turbo' : 'chinchilla',
70
+ 'claude-instant-v1.0': 'a2',
71
+ 'gpt-4': 'beaver'
72
  }
73
 
74
  if not handle:
 
231
  class StreamingCompletion:
232
  def create(
233
  model : str = 'gpt-4',
234
+ custom_model : bool = None,
235
  prompt: str = 'hello world',
236
  token : str = ''):
237
 
 
247
 
248
  client = PoeClient(token)
249
 
250
+ for chunk in client.send_message(_model, prompt):
251
 
252
  yield PoeResponse({
253
  'id' : chunk["messageId"],
 
286
 
287
  client = PoeClient(token)
288
 
289
+ for chunk in client.send_message(_model, prompt):
290
  pass
291
 
292
  return PoeResponse({
 
305
  'completion_tokens' : len(chunk["text"]),
306
  'total_tokens' : len(prompt) + len(chunk["text"])
307
  }
308
+ })