mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-29 18:36:23 +02:00
copilot: minor code cleanup
This commit is contained in:
parent
aae95e49a9
commit
17d119f105
2 changed files with 14 additions and 18 deletions
|
|
@ -1,12 +1,8 @@
|
|||
from openai import OpenAI
|
||||
from flask import Flask, request, jsonify
|
||||
from pydantic import BaseModel, ValidationError
|
||||
from typing import List
|
||||
from copilot import UserMessage, AssistantMessage, get_response
|
||||
from lib import AgentContext, PromptContext, ToolContext, ChatContext
|
||||
import os
|
||||
|
||||
openai_client = OpenAI()
|
||||
|
||||
class ApiRequest(BaseModel):
|
||||
messages: List[UserMessage | AssistantMessage]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue