#๐ API Integration not working as expected
24 messages ยท Page 1 of 1 (latest)
@left heart
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Im trying to build a travel itinerary generator that takes user input and gets an AI generated itinerary based on it. I have used eden API's prompt optimization and text generator, but the prompt optimization always returns "Given the following text and a list of entities, please extract and list all occurrences of the specified entities in the text. The entities to be extracted are [entities]. The text for entity extraction is [text]."
Because of this result the text generator always returns "AI Assistant: Hello! I am your AI assistant. I am here to help you with anything you need. What can". The relevant code is in this link:
https://paste.pythondiscord.com/53BA
can you post the snippet for the request code?
wdym? im sry i just started web dev im not rlly aware of the terms
its not really a good decision to post your authorization key in public chatrooms
please conceal it next time
mb you already gave the link to the code snippet
yea
oops yea i forgot that was in the code
is Eden api capable of prompt optimization?
maybe you can try some of the suggestions on this forum
ok
aur maybe you can just extract the itinary arguments from the form like you are doin
and then add them to a pre written prompt
and just simply give that prompt to your API
so ig prompt optimization might not be needed
yes thats what i was thinking of
i will do that
Also wanted to know, since im storing the user's input in a SQLite database until they logout, is it possible to use those values in the generation prompt?
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.