claude 3
1.0.0
พบกับ Claude 3 Haiku , ปีศาจความเร็วที่ประมวลผล 30 หน้าในพริบตา, สติปัญญาการกำหนดเกณฑ์มาตรฐานใหม่และภาพถ่ายการถอดรหัสที่มีวิสัยทัศน์ไปยังไดอะแกรมทางเทคนิค เหมาะสำหรับ การสวมบทบาท
หากคุณใช้มันผ่านส่วนหน้าใด ๆ สำหรับ Librechats, Sillyter, Janitorai ฯลฯ
https://galaxyapi.onrender.comcurl https://galaxyapi.onrender.com/v1/chat/completions
-H " Content-Type: application/json "
-H " Authorization: Bearer $GALAXYAI_API_KEY "
-d ' {
"model": "claude-3-haiku-20240307",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
]
} 'งูหลาม
from openai import OpenAI
client = OpenAI ( apikey = "galaxy-secret-key-here" )
client . base_url = "https://galaxyapi.onrender.com/v1"
completion = client . chat . completions . create (
model = "claude-3-haiku-20240307" ,
messages = [
{ "role" : "system" , "content" : "You are a helpful assistant." },
{ "role" : "user" , "content" : "Hello!" }
]
)
print ( completion . choices [ 0 ]. message )nodejs
import OpenAI from "openai" ;
const openai = new OpenAI ( {
apiKey : 'GALAXY_API_KEY' ,
baseURL : 'https://galaxyapi.onrender.com/v1'
} )
async function main ( ) {
const completion = await openai . chat . completions . create ( {
messages : [ { role : "system" , content : "You are a helpful assistant." } ] ,
model : "claude-3-haiku-20240307" ,
} ) ;
console . log ( completion . choices [ 0 ] ) ;
}
main ( ) ;มีปัญหาอย่าลังเลที่จะรายงานโดยการสร้างปัญหาหรือรายงานที่นี่