GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(ai): add native Groq provider with provider-specific options (#4… · anomalyco/opencode@f4a9b93

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • bun.lock
  • packages
    • ai
      • src/providers
        • groq.ts
        • index.ts
      • test
        • fixtures/recordings/groq-chat
          • continues-qwen-parallel-tool-calls.json
          • replays-gpt-oss-reasoning-through-a-tool-loop.json
          • streams-qwen-parsed-reasoning.json
          • streams-text-with-usage.json
        • provider-package.test.ts
        • provider
          • groq.recorded.test.ts
          • groq.test.ts
          • native-providers.test.ts
    • core
      • package.json
      • src
        • aisdk-native.ts
        • model-resolver.ts
        • plugin
          • provider.ts
          • provider
            • groq.ts
        • provider.ts
      • test
        • aisdk-native.test.ts
        • model-resolver.test.ts
        • plugin
          • provider-factory.test.ts
        • provider.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bun.lock‎

Copy file name to clipboardExpand all lines: bun.lock
-1Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎packages/ai/src/providers/groq.ts‎

Copy file name to clipboard
+116Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
import { Effect, Schema } from "effect"
2+
import type { ProviderPackage } from "../provider-package.js"
3+
import { OpenAIChat } from "../protocols/openai-chat.js"
4+
import { ProviderShared } from "../protocols/shared.js"
5+
import { AuthOptions, type ProviderAuthOption } from "../route/auth-options.js"
6+
import { Route, type RouteDefaultsInput } from "../route/client.js"
7+
import { Endpoint } from "../route/endpoint.js"
8+
import { Framing } from "../route/framing.js"
9+
import { Protocol } from "../route/protocol.js"
10+
import { ProviderID, type ModelID, type LLMRequest } from "../schema/index.js"
11+
import { profiles } from "./openai-compatible-profile.js"
12+
import type { OpenAIProviderOptionsInput } from "./openai-options.js"
13+
14+
export const id = ProviderID.make("groq")
15+
16+
export type ProviderOptions = Pick<OpenAIProviderOptionsInput, "reasoningEffort"> & {
17+
/** Controls visible reasoning on GPT-OSS; other models always use parsed reasoning. */
18+
readonly includeReasoning?: boolean
19+
readonly parallelToolCalls?: boolean
20+
readonly serviceTier?: "on_demand" | "flex" | "auto" | "performance" | (string & {})
21+
readonly user?: string
22+
}
23+
24+
export type LanguageModelOptions = Omit<RouteDefaultsInput, "providerOptions"> &
25+
ProviderAuthOption<"optional"> & {
26+
readonly baseURL?: string
27+
readonly providerOptions?: ProviderOptions
28+
}
29+
30+
export interface Settings extends ProviderPackage.Settings {
31+
readonly apiKey?: string
32+
readonly baseURL?: string
33+
readonly providerOptions?: ProviderOptions
34+
}
35+
36+
const Options = Schema.Struct({
37+
includeReasoning: Schema.optional(Schema.Boolean),
38+
parallelToolCalls: Schema.optional(Schema.Boolean),
39+
serviceTier: Schema.optional(Schema.String),
40+
user: Schema.optional(Schema.String),
41+
})
42+
43+
export const protocol = Protocol.make({
44+
id: "groq-chat",
45+
body: {
46+
schema: Schema.Struct({
47+
...OpenAIChat.bodyFields,
48+
reasoning_format: Schema.optional(Schema.Literal("parsed")),
49+
include_reasoning: Schema.optional(Schema.Boolean),
50+
parallel_tool_calls: Schema.optional(Schema.Boolean),
51+
service_tier: Schema.optional(Schema.String),
52+
user: Schema.optional(Schema.String),
53+
}),
54+
from: Effect.fn("Groq.fromRequest")(function* (request: LLMRequest) {
55+
const options = yield* ProviderShared.validateWith(Schema.decodeUnknownEffect(Options))(
56+
request.providerOptions ?? {},
57+
)
58+
const gptOSS = request.model.id.startsWith("openai/gpt-oss-")
59+
return {
60+
...(yield* OpenAIChat.fromRequest(request)),
61+
reasoning_format: gptOSS ? undefined : ("parsed" as const),
62+
include_reasoning: gptOSS ? options.includeReasoning : undefined,
63+
parallel_tool_calls: options.parallelToolCalls,
64+
service_tier: options.serviceTier,
65+
user: options.user,
66+
}
67+
}),
68+
},
69+
stream: OpenAIChat.protocol.stream,
70+
})
71+
72+
export const route = Route.make({
73+
id: "groq-chat",
74+
provider: id,
75+
providerMetadataKey: "openai",
76+
protocol,
77+
endpoint: Endpoint.path("/chat/completions", { baseURL: profiles.groq.baseURL }),
78+
framing: Framing.sse,
79+
})
80+
81+
export const configure = (input: LanguageModelOptions = {}) => {
82+
const { apiKey: _apiKey, auth: _auth, baseURL, ...defaults } = input
83+
const configured = route.with({
84+
...defaults,
85+
endpoint: { baseURL: baseURL ?? profiles.groq.baseURL },
86+
auth: AuthOptions.bearer(input, "GROQ_API_KEY"),
87+
})
88+
return {
89+
id,
90+
model: (modelID: string | ModelID) =>
91+
configured.model<ProviderOptions>({
92+
id: modelID,
93+
compatibility: {
94+
maxTokensField: "max_completion_tokens",
95+
reasoningField: "reasoning",
96+
requireReasoning: false,
97+
supportsStore: false,
98+
supportsStrictMode: false,
99+
},
100+
}),
101+
configure,
102+
}
103+
}
104+
105+
export const provider = configure()
106+
107+
export const model: ProviderPackage.Definition<Settings, ProviderOptions>["model"] = (modelID, settings) =>
108+
configure({
109+
apiKey: settings.apiKey,
110+
baseURL: settings.baseURL,
111+
headers: settings.headers === undefined ? undefined : { ...settings.headers },
112+
http: settings.body === undefined ? undefined : { body: { ...settings.body } },
113+
providerOptions: settings.providerOptions,
114+
}).model(modelID)
115+
116+
export * as Groq from "./groq.js"
Collapse file

‎packages/ai/src/providers/index.ts‎

Copy file name to clipboardExpand all lines: packages/ai/src/providers/index.ts
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export * as GoogleVertex from "./google-vertex.js"
1212
export * as GoogleVertexChat from "./google-vertex-chat.js"
1313
export * as GoogleVertexMessages from "./google-vertex-messages.js"
1414
export * as GoogleVertexResponses from "./google-vertex-responses.js"
15+
export * as Groq from "./groq.js"
1516
export * as OpenAI from "./openai.js"
1617
export * as OpenAICompatible from "./openai-compatible.js"
1718
export * as OpenAICompatibleResponses from "./openai-compatible-responses.js"
Collapse file

‎packages/ai/test/fixtures/recordings/groq-chat/continues-qwen-parallel-tool-calls.json‎

Copy file name to clipboardExpand all lines: packages/ai/test/fixtures/recordings/groq-chat/continues-qwen-parallel-tool-calls.json
+47Lines changed: 47 additions & 0 deletions
Large diffs are not rendered by default.
Collapse file

‎packages/ai/test/fixtures/recordings/groq-chat/replays-gpt-oss-reasoning-through-a-tool-loop.json‎

Copy file name to clipboard
+47Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"version": 1,
3+
"metadata": {
4+
"model": "openai/gpt-oss-20b",
5+
"tags": ["prefix:groq-chat", "provider:groq", "protocol:groq-chat", "tool", "tool-loop", "usage", "reasoning"],
6+
"name": "groq-chat/replays-gpt-oss-reasoning-through-a-tool-loop",
7+
"recordedAt": "2026-08-26T14:40:40.396Z"
8+
},
9+
"interactions": [
10+
{
11+
"transport": "http",
12+
"request": {
13+
"method": "POST",
14+
"url": "https://api.groq.com/openai/v1/chat/completions",
15+
"headers": {
16+
"content-type": "application/json"
17+
},
18+
"body": "{\"model\":\"openai/gpt-oss-20b\",\"messages\":[{\"role\":\"user\",\"content\":\"Look up the current weather in Paris. Call lookup_weather once for each city in the same response before answering. After receiving all results, report each city's weather in one short sentence.\"}],\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"lookup_weather\",\"description\":\"Look up the current weather for a city\",\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\",\"enum\":[\"Paris\",\"London\"]}},\"required\":[\"city\"],\"additionalProperties\":false}}}],\"tool_choice\":\"required\",\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"low\",\"max_completion_tokens\":1536,\"include_reasoning\":true}"
19+
},
20+
"response": {
21+
"status": 200,
22+
"headers": {
23+
"content-type": "text/event-stream"
24+
},
25+
"body": "data: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"},\"logprobs\":null,\"finish_reason\":null}],\"x_groq\":{\"id\":\"req_01m0z886k8egntsgz9r4v0m1d4\",\"seed\":1910723452}}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\"We\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\" need\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\" to\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\" call\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\" function\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\" lookup\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\"_weather\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\" for\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\" Paris\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\",\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\" then\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\" report\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"reasoning\":\".\",\"channel\":\"analysis\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"id\":\"fc_db90d537-d954-4c54-86ed-0fe04424fbb3\",\"type\":\"function\",\"function\":{\"name\":\"lookup_weather\",\"arguments\":\"{\\\"city\\\":\\\"Paris\\\"}\"},\"index\":0}]},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[{\"index\":0,\"delta\":{},\"logprobs\":null,\"finish_reason\":\"tool_calls\"}],\"x_groq\":{\"id\":\"req_01m0z886k8egntsgz9r4v0m1d4\",\"usage\":{\"queue_time\":0.057877384,\"prompt_tokens\":169,\"prompt_time\":0.008344781,\"completion_tokens\":37,\"completion_time\":0.0500934,\"total_tokens\":206,\"total_time\":0.058438181,\"completion_tokens_details\":{\"reasoning_tokens\":14}}},\"usage\":{\"queue_time\":0.057877384,\"prompt_tokens\":169,\"prompt_time\":0.008344781,\"completion_tokens\":37,\"completion_time\":0.0500934,\"total_tokens\":206,\"total_time\":0.058438181,\"completion_tokens_details\":{\"reasoning_tokens\":14}}}\n\ndata: {\"id\":\"chatcmpl-db8950e1-43a6-458b-adce-ec7c271296f7\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_8e23cedc90\",\"choices\":[],\"usage\":{\"queue_time\":0.057877384,\"prompt_tokens\":169,\"prompt_time\":0.008344781,\"completion_tokens\":37,\"completion_time\":0.0500934,\"total_tokens\":206,\"total_time\":0.058438181,\"completion_tokens_details\":{\"reasoning_tokens\":14}},\"service_tier\":\"on_demand\"}\n\ndata: [DONE]\n\n"
26+
}
27+
},
28+
{
29+
"transport": "http",
30+
"request": {
31+
"method": "POST",
32+
"url": "https://api.groq.com/openai/v1/chat/completions",
33+
"headers": {
34+
"content-type": "application/json"
35+
},
36+
"body": "{\"model\":\"openai/gpt-oss-20b\",\"messages\":[{\"role\":\"user\",\"content\":\"Look up the current weather in Paris. Call lookup_weather once for each city in the same response before answering. After receiving all results, report each city's weather in one short sentence.\"},{\"role\":\"assistant\",\"content\":null,\"tool_calls\":[{\"id\":\"fc_db90d537-d954-4c54-86ed-0fe04424fbb3\",\"type\":\"function\",\"function\":{\"name\":\"lookup_weather\",\"arguments\":\"{\\\"city\\\":\\\"Paris\\\"}\"}}],\"reasoning\":\"We need to call function lookup_weather for Paris, then report.\"},{\"role\":\"tool\",\"tool_call_id\":\"fc_db90d537-d954-4c54-86ed-0fe04424fbb3\",\"content\":\"{\\\"condition\\\":\\\"sunny\\\",\\\"temperature\\\":\\\"18C\\\"}\"}],\"tools\":[{\"type\":\"function\",\"function\":{\"name\":\"lookup_weather\",\"description\":\"Look up the current weather for a city\",\"parameters\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\",\"enum\":[\"Paris\",\"London\"]}},\"required\":[\"city\"],\"additionalProperties\":false}}}],\"tool_choice\":\"none\",\"stream\":true,\"stream_options\":{\"include_usage\":true},\"reasoning_effort\":\"low\",\"max_completion_tokens\":1536,\"include_reasoning\":true}"
37+
},
38+
"response": {
39+
"status": 200,
40+
"headers": {
41+
"content-type": "text/event-stream"
42+
},
43+
"body": "data: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\"},\"logprobs\":null,\"finish_reason\":null}],\"x_groq\":{\"id\":\"req_01m0z886t2esqs7bzn2sd7b2t0\",\"seed\":594081379}}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Paris\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" is\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" sunny\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" with\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" a\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" temperature\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" of\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\" \"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"18\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"°C\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\".\"},\"logprobs\":null,\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[{\"index\":0,\"delta\":{},\"logprobs\":null,\"finish_reason\":\"stop\"}],\"x_groq\":{\"id\":\"req_01m0z886t2esqs7bzn2sd7b2t0\",\"usage\":{\"queue_time\":0.128860404,\"prompt_tokens\":224,\"prompt_time\":0.060486793,\"completion_tokens\":15,\"completion_time\":0.015616316,\"total_tokens\":239,\"total_time\":0.076103109}},\"usage\":{\"queue_time\":0.128860404,\"prompt_tokens\":224,\"prompt_time\":0.060486793,\"completion_tokens\":15,\"completion_time\":0.015616316,\"total_tokens\":239,\"total_time\":0.076103109}}\n\ndata: {\"id\":\"chatcmpl-b16b8480-6b57-4293-a8c1-4188ae6adf91\",\"object\":\"chat.completion.chunk\",\"created\":1787755240,\"model\":\"openai/gpt-oss-20b\",\"system_fingerprint\":\"fp_34cb00738d\",\"choices\":[],\"usage\":{\"queue_time\":0.128860404,\"prompt_tokens\":224,\"prompt_time\":0.060486793,\"completion_tokens\":15,\"completion_time\":0.015616316,\"total_tokens\":239,\"total_time\":0.076103109},\"service_tier\":\"on_demand\"}\n\ndata: [DONE]\n\n"
44+
}
45+
}
46+
]
47+
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.