quick add

This commit is contained in:
2025-09-12 11:16:48 +01:00
parent 594f89e6b3
commit fd2432df38
2 changed files with 6 additions and 10 deletions
+4 -2
View File
@@ -1,3 +1,7 @@
.continue/*
.ropeproject/*
random_*
# Python-generated files # Python-generated files
__pycache__/ __pycache__/
*.py[oc] *.py[oc]
@@ -8,5 +12,3 @@ wheels/
# Virtual environments # Virtual environments
.venv .venv
.continue/*
.ropeproject/*
+2 -8
View File
@@ -13,7 +13,7 @@ from tools import ToolExecutor
import random import random
import time import time
LM_STUDIO_URL = "http://127.0.0.1:1234/v1/chat/completions" # default LM Studio endpoint LM_STUDIO_URL = "http://127.0.0.1:1234/v1/chat/completions"
EXIT_STRINGS = ['exit','goodbye','go away','fuck off'] EXIT_STRINGS = ['exit','goodbye','go away','fuck off']
console = Console() console = Console()
@@ -34,13 +34,7 @@ please reply with only the tool call if you need to
} }
] ]
}''' }'''
# "parameters": {
# "type": "object",
# "properties": {
# "city": {"type": "string", "description": "City name"},
# },
# "required": ["city"]
# },
def ask_model(prompt: str, url=LM_STUDIO_URL) -> str: def ask_model(prompt: str, url=LM_STUDIO_URL) -> str:
payload = { payload = {
"model": 'qwen/qwen3-coder-30b', "model": 'qwen/qwen3-coder-30b',