summaryrefslogtreecommitdiff
path: root/continuedev/src/continuedev/server
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-30 19:55:18 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-30 19:55:18 -0700
commit28f5d7bedab05a8b061e4e7ee9055a5403786bbc (patch)
tree8e32e9a0edcddf3dd3bf5dbf76e14fb09b15ca8e /continuedev/src/continuedev/server
parenta0e2e2d3d606d8bf465eac541a84aa57316ee271 (diff)
downloadsncontinue-28f5d7bedab05a8b061e4e7ee9055a5403786bbc.tar.gz
sncontinue-28f5d7bedab05a8b061e4e7ee9055a5403786bbc.tar.bz2
sncontinue-28f5d7bedab05a8b061e4e7ee9055a5403786bbc.zip
fix: :art: many small improvements
Diffstat (limited to 'continuedev/src/continuedev/server')
-rw-r--r--continuedev/src/continuedev/server/gui.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/continuedev/src/continuedev/server/gui.py b/continuedev/src/continuedev/server/gui.py
index 08c5efc5..dbf9ba0d 100644
--- a/continuedev/src/continuedev/server/gui.py
+++ b/continuedev/src/continuedev/server/gui.py
@@ -182,7 +182,7 @@ class GUIProtocolServer(AbstractGUIProtocolServer):
name = "continue_logs.txt"
logs = "\n\n############################################\n\n".join(
[
- "This is a log of the exact prompt/completion pairs sent/received from the LLM during this step"
+ "This is a log of the prompt/completion pairs sent/received from the LLM during this step"
]
+ self.session.autopilot.continue_sdk.history.timeline[index].logs
)
@@ -244,8 +244,13 @@ class GUIProtocolServer(AbstractGUIProtocolServer):
if prev_model is not None:
exists = False
for other in unused_models:
- if display_llm_class(prev_model) == display_llm_class(
- other
+ if (
+ prev_model.__class__.__name__
+ == other.__class__.__name__
+ and (
+ not other.name.startswith("gpt")
+ or prev_model.name == other.name
+ )
):
exists = True
break