Gemini API Integration Expert Needed

Gemini API Integration Expert Needed

Gemini API Integration Expert Needed

工作概述

位置
全球
工作类型
Freelancer.com
薪水
$1,950 - $5,850 项目报价
发布日期
2 天 前

额外细节

工作编号
34298
工作视图
12

职位描述

using System; using [login to view URL]; using [login to view URL]; using UnityEngine; using [login to view URL]; public class GeminiService : MonoBehaviour { private string apiKey = "YOUR_GEMINI_API_KEY"; // أدخل مفتاح API الخاص بك هنا private string apiUrl = "[login to view URL]:generateContent?key="; [Serializable] private class GeminiRequest { public Content[] contents; } [Serializable] private class Content { public Part[] parts; } [Serializable] private class Part { public string text; } public IEnumerator SendPrompt(string userPrompt, Action callback) { string fullUrl = apiUrl + apiKey; GeminiRequest requestData = new GeminiRequest { contents = new Content[] { new Content { parts = new Part[] { new Part { text = userPrompt } } } } }; string jsonPayload = [login to view URL](requestData); byte[] bodyRaw = [login to view URL](jsonPayload); using (UnityWebRequest request = new UnityWebRequest(fullUrl, "POST")) { [login to view URL] = new UploadHandlerRaw(bodyRaw); [login to view URL] = new DownloadHandlerBuffer(); [login to view URL]("Content-Type", "application/json"); yield return [login to view URL](); if ([login to view URL] == [login to view URL]) { callback?.Invoke([login to view URL]); } else { callback?.Invoke("خطأ في الاتصال بـ Gemini: " + [login to view URL]); } } } } --- 來源:Freelancer.com | 出價次數:42 | 剩餘時間:6 日 | 專案類型:固定預算

常見問題 FAQ

點樣申請呢份工?

請點擊頁面上嘅「立即申請」按鈕,或者按照聯絡資料聯絡僱主。

申請後幾耐有回覆?

回覆時間視乎僱主,一般 1-2 星期內會有面試邀請。

呢份工係唔係真實㗎?

EZJobs 上嘅所有職位都經過審核,確保真實有效。

位置

🌍

🌍 远程工作 · 全球可做

此项目为自由职业性质,不限工作地点,可于全球任何地方远程完成。

工作模式:自由职业

类似职位

Freelance · 自由職業

Brand Website Designer

Freehunter
Freehunter

Freelance · 自由職業

Private event, Central

Freehunter

饼干

本网站使用cookie来确保您在我们的网站上获得最佳体验。

接受