-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refact openai v2v #438
refact openai v2v #438
Conversation
messages.extend(self.memory.get()) | ||
|
||
history = self.memory.get() | ||
while history: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while len(history) > 0?
users_count = 0 | ||
|
||
completion_times = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for metrics maybe create a utility class?
we can use like
metrics.mark("connect_times")
## after some seconds
elapse = metrics.elapse("connect_times")
r = await response.json() | ||
self.ten_env.log_error(f"Received unexpected status {r} from the server.") | ||
return | ||
async with aiohttp.ClientSession() as session: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe cache it to avoid overhead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave some comments
No description provided.