- Added different AIs for ASR and for structure builder
- Forcing models to use JSON from now on
This commit is contained in:
2026-09-23 00:22:09 +03:00
parent 3ae4d82f14
commit 642542ad10
4 changed files with 34 additions and 17 deletions

View File

@@ -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