Create an OpenAI inference component based on the ETH Price Oracle (components/eth-price-oracle). The component should:
- Accept input in the format 'PROMPT|OPENAI_API_KEY|SEED' from a Makefile parameter
- Use
fetch_json
andhttp_request_post_json
for API communication - Return and log only
choices[0].message.content
andchoices[0].finish_reason
- Include proper input validation and SEED should be an integer
- Use the main makefile, do not create a separate one.
Important Implementation Details: