10 11 12 13 14 15 16 17 18 19 20 import from import from import from const async const await const return { createOpenAI } ; { stream } ; { streamText } ; model ({ baseURL , apiKey process.env. , }). ( ); app. ( , (c) { { messages } c.req. (); result ({ model, system , messages, }); c. ( , ); (c, (stream) stream. (result. ())); }); "@ai-sdk/openai" "hono/streaming" "ai" "https://models.github.ai/inference" "openai/gpt-4o-mini" "/api/chat" "You are a helpful assistant." "Content-Encoding" "Identity" = : : => = = : => createOpenAI chat post json streamText header stream pipe toDataStream OPENAI_API_KEY