mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
add copilot dockerfile
This commit is contained in:
parent
a19dedd59f
commit
1d20e2cb97
4 changed files with 26 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ 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()
|
||||
|
||||
|
|
@ -76,4 +77,4 @@ def chat():
|
|||
}), 500
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
app.run(host=os.getenv('HOST', '0.0.0.0'), port=int(os.getenv('PORT', 3001)), debug=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue