client.GenerateResponse(ctx, req)
نص
الاستجابات
استدعِ /responses باستخدام غلاف Go.
استخدم طريقة الغلاف:
لا يوفّر الغلاف بعد مساعدًا مخصصًا للبث.
آخر تعديل في ٢ أكتوبر ٢٠٢٦
هل كانت هذه الصفحة مفيدة؟
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
استدعِ /responses باستخدام غلاف Go.
client.GenerateResponse(ctx, req)import (
"context"
"fmt"
phaseo "github.com/phaseoteam/Phaseo/packages/sdk/sdk-go/v3"
)
client := phaseo.New(apiKey, "https://api.phaseo.app/v1")
input := map[string]interface{}{
"role": "user",
"content": []map[string]interface{}{
{
"type": "input_text",
"text": "Reply with: responses endpoint works",
},
},
}
resp, err := client.GenerateResponse(context.Background(), phaseo.ResponsesRequest{
Model: "openai/gpt-5-nano",
Input: &input,
})
if err != nil {
panic(err)
}
fmt.Println(resp)
هل كانت هذه الصفحة مفيدة؟