openai_request.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  1. package dto
  2. import (
  3. "encoding/json"
  4. "one-api/common"
  5. "strings"
  6. )
  7. type ResponseFormat struct {
  8. Type string `json:"type,omitempty"`
  9. JsonSchema json.RawMessage `json:"json_schema,omitempty"`
  10. }
  11. type FormatJsonSchema struct {
  12. Description string `json:"description,omitempty"`
  13. Name string `json:"name"`
  14. Schema any `json:"schema,omitempty"`
  15. Strict json.RawMessage `json:"strict,omitempty"`
  16. }
  17. type GeneralOpenAIRequest struct {
  18. Model string `json:"model,omitempty"`
  19. Messages []Message `json:"messages,omitempty"`
  20. Prompt any `json:"prompt,omitempty"`
  21. Prefix any `json:"prefix,omitempty"`
  22. Suffix any `json:"suffix,omitempty"`
  23. Stream bool `json:"stream,omitempty"`
  24. StreamOptions *StreamOptions `json:"stream_options,omitempty"`
  25. MaxTokens uint `json:"max_tokens,omitempty"`
  26. MaxCompletionTokens uint `json:"max_completion_tokens,omitempty"`
  27. ReasoningEffort string `json:"reasoning_effort,omitempty"`
  28. Verbosity json.RawMessage `json:"verbosity,omitempty"` // gpt-5
  29. Temperature *float64 `json:"temperature,omitempty"`
  30. TopP float64 `json:"top_p,omitempty"`
  31. TopK int `json:"top_k,omitempty"`
  32. Stop any `json:"stop,omitempty"`
  33. N int `json:"n,omitempty"`
  34. Input any `json:"input,omitempty"`
  35. Instruction string `json:"instruction,omitempty"`
  36. Size string `json:"size,omitempty"`
  37. Functions json.RawMessage `json:"functions,omitempty"`
  38. FrequencyPenalty float64 `json:"frequency_penalty,omitempty"`
  39. PresencePenalty float64 `json:"presence_penalty,omitempty"`
  40. ResponseFormat *ResponseFormat `json:"response_format,omitempty"`
  41. EncodingFormat json.RawMessage `json:"encoding_format,omitempty"`
  42. Seed float64 `json:"seed,omitempty"`
  43. ParallelTooCalls *bool `json:"parallel_tool_calls,omitempty"`
  44. Tools []ToolCallRequest `json:"tools,omitempty"`
  45. ToolChoice any `json:"tool_choice,omitempty"`
  46. User string `json:"user,omitempty"`
  47. LogProbs bool `json:"logprobs,omitempty"`
  48. TopLogProbs int `json:"top_logprobs,omitempty"`
  49. Dimensions int `json:"dimensions,omitempty"`
  50. Modalities json.RawMessage `json:"modalities,omitempty"`
  51. Audio json.RawMessage `json:"audio,omitempty"`
  52. EnableThinking any `json:"enable_thinking,omitempty"` // ali
  53. THINKING json.RawMessage `json:"thinking,omitempty"` // doubao,zhipu_v4
  54. ExtraBody json.RawMessage `json:"extra_body,omitempty"`
  55. SearchParameters any `json:"search_parameters,omitempty"` //xai
  56. WebSearchOptions *WebSearchOptions `json:"web_search_options,omitempty"`
  57. // OpenRouter Params
  58. Usage json.RawMessage `json:"usage,omitempty"`
  59. Reasoning json.RawMessage `json:"reasoning,omitempty"`
  60. // Ali Qwen Params
  61. VlHighResolutionImages json.RawMessage `json:"vl_high_resolution_images,omitempty"`
  62. // 用匿名参数接收额外参数,例如ollama的think参数在此接收
  63. Extra map[string]json.RawMessage `json:"-"`
  64. }
  65. func (r *GeneralOpenAIRequest) ToMap() map[string]any {
  66. result := make(map[string]any)
  67. data, _ := common.Marshal(r)
  68. _ = common.Unmarshal(data, &result)
  69. return result
  70. }
  71. func (r *GeneralOpenAIRequest) GetSystemRoleName() string {
  72. if strings.HasPrefix(r.Model, "o") {
  73. if !strings.HasPrefix(r.Model, "o1-mini") && !strings.HasPrefix(r.Model, "o1-preview") {
  74. return "developer"
  75. }
  76. } else if strings.HasPrefix(r.Model, "gpt-5") {
  77. return "developer"
  78. }
  79. return "system"
  80. }
  81. type ToolCallRequest struct {
  82. ID string `json:"id,omitempty"`
  83. Type string `json:"type"`
  84. Function FunctionRequest `json:"function"`
  85. }
  86. type FunctionRequest struct {
  87. Description string `json:"description,omitempty"`
  88. Name string `json:"name"`
  89. Parameters any `json:"parameters,omitempty"`
  90. Arguments string `json:"arguments,omitempty"`
  91. }
  92. type StreamOptions struct {
  93. IncludeUsage bool `json:"include_usage,omitempty"`
  94. }
  95. func (r *GeneralOpenAIRequest) GetMaxTokens() uint {
  96. if r.MaxCompletionTokens != 0 {
  97. return r.MaxCompletionTokens
  98. }
  99. return r.MaxTokens
  100. }
  101. func (r *GeneralOpenAIRequest) ParseInput() []string {
  102. if r.Input == nil {
  103. return nil
  104. }
  105. var input []string
  106. switch r.Input.(type) {
  107. case string:
  108. input = []string{r.Input.(string)}
  109. case []any:
  110. input = make([]string, 0, len(r.Input.([]any)))
  111. for _, item := range r.Input.([]any) {
  112. if str, ok := item.(string); ok {
  113. input = append(input, str)
  114. }
  115. }
  116. }
  117. return input
  118. }
  119. type Message struct {
  120. Role string `json:"role"`
  121. Content any `json:"content"`
  122. Name *string `json:"name,omitempty"`
  123. Prefix *bool `json:"prefix,omitempty"`
  124. ReasoningContent string `json:"reasoning_content,omitempty"`
  125. Reasoning string `json:"reasoning,omitempty"`
  126. ToolCalls json.RawMessage `json:"tool_calls,omitempty"`
  127. ToolCallId string `json:"tool_call_id,omitempty"`
  128. parsedContent []MediaContent
  129. //parsedStringContent *string
  130. }
  131. type MediaContent struct {
  132. Type string `json:"type"`
  133. Text string `json:"text,omitempty"`
  134. ImageUrl any `json:"image_url,omitempty"`
  135. InputAudio any `json:"input_audio,omitempty"`
  136. File any `json:"file,omitempty"`
  137. VideoUrl any `json:"video_url,omitempty"`
  138. // OpenRouter Params
  139. CacheControl json.RawMessage `json:"cache_control,omitempty"`
  140. }
  141. func (m *MediaContent) GetImageMedia() *MessageImageUrl {
  142. if m.ImageUrl != nil {
  143. if _, ok := m.ImageUrl.(*MessageImageUrl); ok {
  144. return m.ImageUrl.(*MessageImageUrl)
  145. }
  146. if itemMap, ok := m.ImageUrl.(map[string]any); ok {
  147. out := &MessageImageUrl{
  148. Url: common.Interface2String(itemMap["url"]),
  149. Detail: common.Interface2String(itemMap["detail"]),
  150. MimeType: common.Interface2String(itemMap["mime_type"]),
  151. }
  152. return out
  153. }
  154. }
  155. return nil
  156. }
  157. func (m *MediaContent) GetInputAudio() *MessageInputAudio {
  158. if m.InputAudio != nil {
  159. if _, ok := m.InputAudio.(*MessageInputAudio); ok {
  160. return m.InputAudio.(*MessageInputAudio)
  161. }
  162. if itemMap, ok := m.InputAudio.(map[string]any); ok {
  163. out := &MessageInputAudio{
  164. Data: common.Interface2String(itemMap["data"]),
  165. Format: common.Interface2String(itemMap["format"]),
  166. }
  167. return out
  168. }
  169. }
  170. return nil
  171. }
  172. func (m *MediaContent) GetFile() *MessageFile {
  173. if m.File != nil {
  174. if _, ok := m.File.(*MessageFile); ok {
  175. return m.File.(*MessageFile)
  176. }
  177. if itemMap, ok := m.File.(map[string]any); ok {
  178. out := &MessageFile{
  179. FileName: common.Interface2String(itemMap["file_name"]),
  180. FileData: common.Interface2String(itemMap["file_data"]),
  181. FileId: common.Interface2String(itemMap["file_id"]),
  182. }
  183. return out
  184. }
  185. }
  186. return nil
  187. }
  188. type MessageImageUrl struct {
  189. Url string `json:"url"`
  190. Detail string `json:"detail"`
  191. MimeType string
  192. }
  193. func (m *MessageImageUrl) IsRemoteImage() bool {
  194. return strings.HasPrefix(m.Url, "http")
  195. }
  196. type MessageInputAudio struct {
  197. Data string `json:"data"` //base64
  198. Format string `json:"format"`
  199. }
  200. type MessageFile struct {
  201. FileName string `json:"filename,omitempty"`
  202. FileData string `json:"file_data,omitempty"`
  203. FileId string `json:"file_id,omitempty"`
  204. }
  205. type MessageVideoUrl struct {
  206. Url string `json:"url"`
  207. }
  208. const (
  209. ContentTypeText = "text"
  210. ContentTypeImageURL = "image_url"
  211. ContentTypeInputAudio = "input_audio"
  212. ContentTypeFile = "file"
  213. ContentTypeVideoUrl = "video_url" // 阿里百炼视频识别
  214. )
  215. func (m *Message) GetPrefix() bool {
  216. if m.Prefix == nil {
  217. return false
  218. }
  219. return *m.Prefix
  220. }
  221. func (m *Message) SetPrefix(prefix bool) {
  222. m.Prefix = &prefix
  223. }
  224. func (m *Message) ParseToolCalls() []ToolCallRequest {
  225. if m.ToolCalls == nil {
  226. return nil
  227. }
  228. var toolCalls []ToolCallRequest
  229. if err := json.Unmarshal(m.ToolCalls, &toolCalls); err == nil {
  230. return toolCalls
  231. }
  232. return toolCalls
  233. }
  234. func (m *Message) SetToolCalls(toolCalls any) {
  235. toolCallsJson, _ := json.Marshal(toolCalls)
  236. m.ToolCalls = toolCallsJson
  237. }
  238. func (m *Message) StringContent() string {
  239. switch m.Content.(type) {
  240. case string:
  241. return m.Content.(string)
  242. case []any:
  243. var contentStr string
  244. for _, contentItem := range m.Content.([]any) {
  245. contentMap, ok := contentItem.(map[string]any)
  246. if !ok {
  247. continue
  248. }
  249. if contentMap["type"] == ContentTypeText {
  250. if subStr, ok := contentMap["text"].(string); ok {
  251. contentStr += subStr
  252. }
  253. }
  254. }
  255. return contentStr
  256. }
  257. return ""
  258. }
  259. func (m *Message) SetNullContent() {
  260. m.Content = nil
  261. m.parsedContent = nil
  262. }
  263. func (m *Message) SetStringContent(content string) {
  264. m.Content = content
  265. m.parsedContent = nil
  266. }
  267. func (m *Message) SetMediaContent(content []MediaContent) {
  268. m.Content = content
  269. m.parsedContent = content
  270. }
  271. func (m *Message) IsStringContent() bool {
  272. _, ok := m.Content.(string)
  273. if ok {
  274. return true
  275. }
  276. return false
  277. }
  278. func (m *Message) ParseContent() []MediaContent {
  279. if m.Content == nil {
  280. return nil
  281. }
  282. if len(m.parsedContent) > 0 {
  283. return m.parsedContent
  284. }
  285. var contentList []MediaContent
  286. // 先尝试解析为字符串
  287. content, ok := m.Content.(string)
  288. if ok {
  289. contentList = []MediaContent{{
  290. Type: ContentTypeText,
  291. Text: content,
  292. }}
  293. m.parsedContent = contentList
  294. return contentList
  295. }
  296. // 尝试解析为数组
  297. //var arrayContent []map[string]interface{}
  298. arrayContent, ok := m.Content.([]any)
  299. if !ok {
  300. return contentList
  301. }
  302. for _, contentItemAny := range arrayContent {
  303. mediaItem, ok := contentItemAny.(MediaContent)
  304. if ok {
  305. contentList = append(contentList, mediaItem)
  306. continue
  307. }
  308. contentItem, ok := contentItemAny.(map[string]any)
  309. if !ok {
  310. continue
  311. }
  312. contentType, ok := contentItem["type"].(string)
  313. if !ok {
  314. continue
  315. }
  316. switch contentType {
  317. case ContentTypeText:
  318. if text, ok := contentItem["text"].(string); ok {
  319. contentList = append(contentList, MediaContent{
  320. Type: ContentTypeText,
  321. Text: text,
  322. })
  323. }
  324. case ContentTypeImageURL:
  325. imageUrl := contentItem["image_url"]
  326. temp := &MessageImageUrl{
  327. Detail: "high",
  328. }
  329. switch v := imageUrl.(type) {
  330. case string:
  331. temp.Url = v
  332. case map[string]interface{}:
  333. url, ok1 := v["url"].(string)
  334. detail, ok2 := v["detail"].(string)
  335. if ok2 {
  336. temp.Detail = detail
  337. }
  338. if ok1 {
  339. temp.Url = url
  340. }
  341. }
  342. contentList = append(contentList, MediaContent{
  343. Type: ContentTypeImageURL,
  344. ImageUrl: temp,
  345. })
  346. case ContentTypeInputAudio:
  347. if audioData, ok := contentItem["input_audio"].(map[string]interface{}); ok {
  348. data, ok1 := audioData["data"].(string)
  349. format, ok2 := audioData["format"].(string)
  350. if ok1 && ok2 {
  351. temp := &MessageInputAudio{
  352. Data: data,
  353. Format: format,
  354. }
  355. contentList = append(contentList, MediaContent{
  356. Type: ContentTypeInputAudio,
  357. InputAudio: temp,
  358. })
  359. }
  360. }
  361. case ContentTypeFile:
  362. if fileData, ok := contentItem["file"].(map[string]interface{}); ok {
  363. fileId, ok3 := fileData["file_id"].(string)
  364. if ok3 {
  365. contentList = append(contentList, MediaContent{
  366. Type: ContentTypeFile,
  367. File: &MessageFile{
  368. FileId: fileId,
  369. },
  370. })
  371. } else {
  372. fileName, ok1 := fileData["filename"].(string)
  373. fileDataStr, ok2 := fileData["file_data"].(string)
  374. if ok1 && ok2 {
  375. contentList = append(contentList, MediaContent{
  376. Type: ContentTypeFile,
  377. File: &MessageFile{
  378. FileName: fileName,
  379. FileData: fileDataStr,
  380. },
  381. })
  382. }
  383. }
  384. }
  385. case ContentTypeVideoUrl:
  386. if videoUrl, ok := contentItem["video_url"].(string); ok {
  387. contentList = append(contentList, MediaContent{
  388. Type: ContentTypeVideoUrl,
  389. VideoUrl: &MessageVideoUrl{
  390. Url: videoUrl,
  391. },
  392. })
  393. }
  394. }
  395. }
  396. if len(contentList) > 0 {
  397. m.parsedContent = contentList
  398. }
  399. return contentList
  400. }
  401. // old code
  402. /*func (m *Message) StringContent() string {
  403. if m.parsedStringContent != nil {
  404. return *m.parsedStringContent
  405. }
  406. var stringContent string
  407. if err := json.Unmarshal(m.Content, &stringContent); err == nil {
  408. m.parsedStringContent = &stringContent
  409. return stringContent
  410. }
  411. contentStr := new(strings.Builder)
  412. arrayContent := m.ParseContent()
  413. for _, content := range arrayContent {
  414. if content.Type == ContentTypeText {
  415. contentStr.WriteString(content.Text)
  416. }
  417. }
  418. stringContent = contentStr.String()
  419. m.parsedStringContent = &stringContent
  420. return stringContent
  421. }
  422. func (m *Message) SetNullContent() {
  423. m.Content = nil
  424. m.parsedStringContent = nil
  425. m.parsedContent = nil
  426. }
  427. func (m *Message) SetStringContent(content string) {
  428. jsonContent, _ := json.Marshal(content)
  429. m.Content = jsonContent
  430. m.parsedStringContent = &content
  431. m.parsedContent = nil
  432. }
  433. func (m *Message) SetMediaContent(content []MediaContent) {
  434. jsonContent, _ := json.Marshal(content)
  435. m.Content = jsonContent
  436. m.parsedContent = nil
  437. m.parsedStringContent = nil
  438. }
  439. func (m *Message) IsStringContent() bool {
  440. if m.parsedStringContent != nil {
  441. return true
  442. }
  443. var stringContent string
  444. if err := json.Unmarshal(m.Content, &stringContent); err == nil {
  445. m.parsedStringContent = &stringContent
  446. return true
  447. }
  448. return false
  449. }
  450. func (m *Message) ParseContent() []MediaContent {
  451. if m.parsedContent != nil {
  452. return m.parsedContent
  453. }
  454. var contentList []MediaContent
  455. // 先尝试解析为字符串
  456. var stringContent string
  457. if err := json.Unmarshal(m.Content, &stringContent); err == nil {
  458. contentList = []MediaContent{{
  459. Type: ContentTypeText,
  460. Text: stringContent,
  461. }}
  462. m.parsedContent = contentList
  463. return contentList
  464. }
  465. // 尝试解析为数组
  466. var arrayContent []map[string]interface{}
  467. if err := json.Unmarshal(m.Content, &arrayContent); err == nil {
  468. for _, contentItem := range arrayContent {
  469. contentType, ok := contentItem["type"].(string)
  470. if !ok {
  471. continue
  472. }
  473. switch contentType {
  474. case ContentTypeText:
  475. if text, ok := contentItem["text"].(string); ok {
  476. contentList = append(contentList, MediaContent{
  477. Type: ContentTypeText,
  478. Text: text,
  479. })
  480. }
  481. case ContentTypeImageURL:
  482. imageUrl := contentItem["image_url"]
  483. temp := &MessageImageUrl{
  484. Detail: "high",
  485. }
  486. switch v := imageUrl.(type) {
  487. case string:
  488. temp.Url = v
  489. case map[string]interface{}:
  490. url, ok1 := v["url"].(string)
  491. detail, ok2 := v["detail"].(string)
  492. if ok2 {
  493. temp.Detail = detail
  494. }
  495. if ok1 {
  496. temp.Url = url
  497. }
  498. }
  499. contentList = append(contentList, MediaContent{
  500. Type: ContentTypeImageURL,
  501. ImageUrl: temp,
  502. })
  503. case ContentTypeInputAudio:
  504. if audioData, ok := contentItem["input_audio"].(map[string]interface{}); ok {
  505. data, ok1 := audioData["data"].(string)
  506. format, ok2 := audioData["format"].(string)
  507. if ok1 && ok2 {
  508. temp := &MessageInputAudio{
  509. Data: data,
  510. Format: format,
  511. }
  512. contentList = append(contentList, MediaContent{
  513. Type: ContentTypeInputAudio,
  514. InputAudio: temp,
  515. })
  516. }
  517. }
  518. case ContentTypeFile:
  519. if fileData, ok := contentItem["file"].(map[string]interface{}); ok {
  520. fileId, ok3 := fileData["file_id"].(string)
  521. if ok3 {
  522. contentList = append(contentList, MediaContent{
  523. Type: ContentTypeFile,
  524. File: &MessageFile{
  525. FileId: fileId,
  526. },
  527. })
  528. } else {
  529. fileName, ok1 := fileData["filename"].(string)
  530. fileDataStr, ok2 := fileData["file_data"].(string)
  531. if ok1 && ok2 {
  532. contentList = append(contentList, MediaContent{
  533. Type: ContentTypeFile,
  534. File: &MessageFile{
  535. FileName: fileName,
  536. FileData: fileDataStr,
  537. },
  538. })
  539. }
  540. }
  541. }
  542. case ContentTypeVideoUrl:
  543. if videoUrl, ok := contentItem["video_url"].(string); ok {
  544. contentList = append(contentList, MediaContent{
  545. Type: ContentTypeVideoUrl,
  546. VideoUrl: &MessageVideoUrl{
  547. Url: videoUrl,
  548. },
  549. })
  550. }
  551. }
  552. }
  553. }
  554. if len(contentList) > 0 {
  555. m.parsedContent = contentList
  556. }
  557. return contentList
  558. }*/
  559. type WebSearchOptions struct {
  560. SearchContextSize string `json:"search_context_size,omitempty"`
  561. UserLocation json.RawMessage `json:"user_location,omitempty"`
  562. }
  563. // https://platform.openai.com/docs/api-reference/responses/create
  564. type OpenAIResponsesRequest struct {
  565. Model string `json:"model"`
  566. Input json.RawMessage `json:"input,omitempty"`
  567. Include json.RawMessage `json:"include,omitempty"`
  568. Instructions json.RawMessage `json:"instructions,omitempty"`
  569. MaxOutputTokens uint `json:"max_output_tokens,omitempty"`
  570. Metadata json.RawMessage `json:"metadata,omitempty"`
  571. ParallelToolCalls bool `json:"parallel_tool_calls,omitempty"`
  572. PreviousResponseID string `json:"previous_response_id,omitempty"`
  573. Reasoning *Reasoning `json:"reasoning,omitempty"`
  574. ServiceTier string `json:"service_tier,omitempty"`
  575. Store bool `json:"store,omitempty"`
  576. Stream bool `json:"stream,omitempty"`
  577. Temperature float64 `json:"temperature,omitempty"`
  578. Text json.RawMessage `json:"text,omitempty"`
  579. ToolChoice json.RawMessage `json:"tool_choice,omitempty"`
  580. Tools []map[string]any `json:"tools,omitempty"` // 需要处理的参数很少,MCP 参数太多不确定,所以用 map
  581. TopP float64 `json:"top_p,omitempty"`
  582. Truncation string `json:"truncation,omitempty"`
  583. User string `json:"user,omitempty"`
  584. MaxToolCalls uint `json:"max_tool_calls,omitempty"`
  585. Prompt json.RawMessage `json:"prompt,omitempty"`
  586. }
  587. type Reasoning struct {
  588. Effort string `json:"effort,omitempty"`
  589. Summary string `json:"summary,omitempty"`
  590. }
  591. //type ResponsesToolsCall struct {
  592. // Type string `json:"type"`
  593. // // Web Search
  594. // UserLocation json.RawMessage `json:"user_location,omitempty"`
  595. // SearchContextSize string `json:"search_context_size,omitempty"`
  596. // // File Search
  597. // VectorStoreIds []string `json:"vector_store_ids,omitempty"`
  598. // MaxNumResults uint `json:"max_num_results,omitempty"`
  599. // Filters json.RawMessage `json:"filters,omitempty"`
  600. // // Computer Use
  601. // DisplayWidth uint `json:"display_width,omitempty"`
  602. // DisplayHeight uint `json:"display_height,omitempty"`
  603. // Environment string `json:"environment,omitempty"`
  604. // // Function
  605. // Name string `json:"name,omitempty"`
  606. // Description string `json:"description,omitempty"`
  607. // Parameters json.RawMessage `json:"parameters,omitempty"`
  608. // Function json.RawMessage `json:"function,omitempty"`
  609. // Container json.RawMessage `json:"container,omitempty"`
  610. //}