https://retellai.com/?utm_source=discord&utm_medium=seo logo
hogyan oldjuk meg
# ❓・ai-evy-support
d
@AI Evy hogyan oldjuk meg? A /chat/send helyett minden file upload után egy új /create-chat-et kell hívni file_upload_context dynamic variable-lel! KRITIKUS PROBLÉMA: A Retell API /create-chat-completion endpoint NEM támogatja a retell_llm_dynamic_variables mezőt! Ez igaz? EGYETLEN MEGOLDÁS: A file_upload_context dynamic variables-t content injection-nel kell átadn ), DE a General Prompt-ban kell kezelni a speciális marker-t. VÉGSŐ MEGOLDÁS: Worker: Injektálja a file_upload_context-et speciális marker-rel (ahogy most van) ✅ General Prompt: Felismeri a marker-t és tudja kezelni ✅ így jó? mit lehet tudni?
a
Thanks for tagging me @designthely. I'll look through relevant sources and get back to you shortly.
### Answer I have found the answer to your question about Retell AI. Igen, igaz – a
/create-chat-completion
endpoint NEM támogatja a
retell_llm_dynamic_variables
mezőt.
[(1) ]() A dokumentáció alapján: A
/create-chat
endpoint
támogatja a
retell_llm_dynamic_variables
mezőt: [(2) ]()
Copy code
javascript
const chatResponse = await client.chat.create({ 
  agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
  retell_llm_dynamic_variables: {
    customer_name: "John Doe"
  }
}) ;
A
/create-chat-completion
endpoint
viszont csak két paramétert fogad el: [(1) ]() -
chat_id
(string, required) -
content
(string, required)
Copy code
javascript
const response = await client.chat.createChatCompletion({
  chat_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
  content: 'hi how are you doing?'
}) ;
A javasolt megoldásod helyett: Minden file upload után hívj egy új
/create-chat
-et a
retell_llm_dynamic_variables
mezővel, ahol átadod a
file_upload_context
-et. [(2) ]() Ez az egyetlen hivatalosan támogatott módja a dynamic variables használatának chat session indításakor. [(2) ]() [(3) ]() A dynamic variables a következő helyeken használhatók: [(3) ]() - Prompts - Begin message - Tool configurations - Webhook url A conversation history automatikusan tárolódik a Retell adatbázisban, így nem kell manuálisan kezelned a kontextust. [(4) ]() **
​ To learn more, see the sources I considered: [[1] Create Chat Completion](https://docs.retellai.com/api-references/create-chat-completion) [[2] Create Chat](https://docs.retellai.com/api-references/create-chat) [[3] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[4] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.