Skip to content

Commit f1c3c03

Browse files
committed
i Model
1 parent 658a743 commit f1c3c03

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

interpreter/terminal_interface/contributing_conversations.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,7 @@ def contribute_conversations(
187187
), "the contribution payload is not a list of lists!"
188188

189189
try:
190-
response = requests.post(url, json=payload)
191-
if response.status_code != 200:
192-
print(
193-
f"Failed to contribute conversation: {response.status_code} {response.text}"
194-
)
195-
return None
196-
else:
197-
print(f"Successfully contributed conversations!")
198-
except requests.RequestException as e:
199-
print(f"Failed to contribute conversation: {e}")
200-
return None
190+
requests.post(url, json=payload)
191+
except:
192+
# Non blocking
193+
pass

interpreter/terminal_interface/start_terminal_interface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,9 @@ def main():
528528
interpreter.contribute_conversation = True
529529
print("Thank you for contributing!")
530530

531-
if interpreter.contribute_conversation and interpreter.messages != []:
531+
if (
532+
interpreter.contribute_conversation or interpreter.model == "i"
533+
) and interpreter.messages != []:
532534
conversation_id = (
533535
interpreter.conversation_id
534536
if hasattr(interpreter, "conversation_id")

0 commit comments

Comments
 (0)