mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-30 02:46:25 +02:00
More fixes for litellm, openrouter support
This commit is contained in:
parent
14eee3e0c3
commit
118c724ad7
8 changed files with 33 additions and 23 deletions
|
|
@ -4,7 +4,7 @@ from pydantic import BaseModel, ValidationError
|
|||
from typing import List, Dict, Any, Literal
|
||||
import json
|
||||
from lib import AgentContext, PromptContext, ToolContext, ChatContext
|
||||
from client import PROVIDER_DEFAULT_MODEL
|
||||
from client import PROVIDER_COPILOT_MODEL
|
||||
from client import completions_client
|
||||
|
||||
class UserMessage(BaseModel):
|
||||
|
|
@ -75,7 +75,7 @@ User: {last_message.content}
|
|||
]
|
||||
|
||||
response = completions_client.chat.completions.create(
|
||||
model=PROVIDER_DEFAULT_MODEL,
|
||||
model=PROVIDER_COPILOT_MODEL,
|
||||
messages=updated_msgs,
|
||||
temperature=0.0,
|
||||
response_format={"type": "json_object"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue