Merge pull request #113 from presenton/feat/presentation-slide-edit
fix(fastapi): fixes openai response schema issue on edit
This commit is contained in:
commit
d3a99be860
1 changed files with 7 additions and 1 deletions
|
|
@ -85,7 +85,13 @@ async def get_edited_slide_content(
|
|||
slide.content,
|
||||
language,
|
||||
),
|
||||
response_format=response_schema,
|
||||
response_format={
|
||||
"type": "json_schema",
|
||||
"json_schema": {
|
||||
"name": "slide_content",
|
||||
"schema": response_schema,
|
||||
},
|
||||
},
|
||||
)
|
||||
slide_content_json = json.loads(response.choices[0].message.content)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue