Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ccran
/
lufa-contract
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1e76bf63
authored
Jun 24, 2026
by
ccran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update nanobot results;
parent
a810c5a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.py
+3
-3
No files found.
main.py
View file @
1e76bf63
...
@@ -67,7 +67,7 @@ class NanobotLLMChatRequest(BaseModel):
...
@@ -67,7 +67,7 @@ class NanobotLLMChatRequest(BaseModel):
class
NanobotLLMChatResponse
(
BaseModel
):
class
NanobotLLMChatResponse
(
BaseModel
):
resu
ts
:
str
resu
lt
:
str
@app.post
(
"/nanobot_llm_chat"
,
response_model
=
NanobotLLMChatResponse
)
@app.post
(
"/nanobot_llm_chat"
,
response_model
=
NanobotLLMChatResponse
)
...
@@ -79,11 +79,11 @@ async def nanobot_llm_chat(payload: NanobotLLMChatRequest) -> NanobotLLMChatResp
...
@@ -79,11 +79,11 @@ async def nanobot_llm_chat(payload: NanobotLLMChatRequest) -> NanobotLLMChatResp
if
not
user_message
:
if
not
user_message
:
raise
HTTPException
(
status_code
=
400
,
detail
=
"user_message cannot be empty"
)
raise
HTTPException
(
status_code
=
400
,
detail
=
"user_message cannot be empty"
)
result
s
=
await
nanobot_llm_tool
.
chat_async
(
result
=
await
nanobot_llm_tool
.
chat_async
(
nanobot_llm_tool
.
build_messages
(
user_message
),
nanobot_llm_tool
.
build_messages
(
user_message
),
session_id
=
session_id
,
session_id
=
session_id
,
)
)
return
NanobotLLMChatResponse
(
resu
ts
=
results
)
return
NanobotLLMChatResponse
(
resu
lt
=
result
)
########################################################################################################################
########################################################################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment