Skip to content

Commit

Permalink
improve logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Oct 22, 2024
1 parent e074bab commit bb0c5c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
8 changes: 0 additions & 8 deletions .env.example

This file was deleted.

14 changes: 5 additions & 9 deletions agixt/XT.py
Original file line number Diff line number Diff line change
Expand Up @@ -1826,15 +1826,11 @@ async def chat_completions(self, prompt: ChatCompletions):
)
answer = response.split("<answer>")[-1]
answer = answer.split("</answer>")[0]
self.conversation.log_interaction(
role=self.agent_name,
message=answer,
)
else:
self.conversation.log_interaction(
role=self.agent_name,
message=response,
)
response = answer
self.conversation.log_interaction(
role=self.agent_name,
message=response,
)
try:
prompt_tokens = get_tokens(new_prompt) + self.input_tokens
completion_tokens = get_tokens(response)
Expand Down
2 changes: 1 addition & 1 deletion agixt/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.6.17
v1.6.18

0 comments on commit bb0c5c1

Please sign in to comment.