Skip to content

Commit

Permalink
Rename test, format
Browse files Browse the repository at this point in the history
  • Loading branch information
mnicstruwig committed Oct 16, 2024
1 parent 60c2c70 commit 90151a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test Copilots
on: [pull_request]

jobs:
example-copilot-test:
example-copilot:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
9 changes: 5 additions & 4 deletions llama31-local-copilot/llama_copilot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,17 @@ async def query(request: AgentQueryRequest) -> EventSourceResponse:
chat_messages.append(UserMessage(content=sanitize_message(message.content)))

if request.context:
chat_messages.insert(1, UserMessage(content=sanitize_message("# Context\n" + str(request.context))))
chat_messages.insert(
1,
UserMessage(content=sanitize_message("# Context\n" + str(request.context))),
)

@chatprompt(
SystemMessage(SYSTEM_PROMPT),
*chat_messages,
model=LitellmChatModel(model="ollama_chat/llama3.1:8b-instruct-q6_K"),
)
async def _llm() -> AsyncStreamedStr:
...

async def _llm() -> AsyncStreamedStr: ...

result = await _llm()
return EventSourceResponse(
Expand Down

0 comments on commit 90151a6

Please sign in to comment.