WIP
- Added different AIs for ASR and for structure builder - Forcing models to use JSON from now on
This commit is contained in:
3
agent.py
3
agent.py
@@ -1,5 +1,6 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Literal
|
||||
from pydantic import BaseModel
|
||||
|
||||
import httpx2
|
||||
from openai import OpenAI
|
||||
@@ -35,7 +36,7 @@ class Agent:
|
||||
"content": m.content
|
||||
}
|
||||
)
|
||||
response = self._client.chat.completions.create(
|
||||
response = self._client.chat.completions.parse(
|
||||
model=self._model,
|
||||
messages=messages_raw,
|
||||
**kwargs
|
||||
|
||||
Reference in New Issue
Block a user