quick add
This commit is contained in:
+4
-2
@@ -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/*
|
|
||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user