File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ class ChatAgent {
127
127
for try await chunk in try await inferenceApi. chatCompletion (
128
128
request: Components . Schemas. ChatCompletionRequest (
129
129
messages: inputMessages,
130
- model : agentConfig. model,
130
+ model_id : agentConfig. model,
131
131
stream: true ,
132
132
tools: agentConfig. toolDefinitions
133
133
)
Original file line number Diff line number Diff line change @@ -52,21 +52,21 @@ public class RemoteAgents: Agents {
52
52
}
53
53
54
54
public func create( request: Components . Schemas . CreateAgentRequest ) async throws -> Components . Schemas . AgentCreateResponse {
55
- let response = try await client. post_sol_agents_sol_create ( body: Operations . post_sol_agents_sol_create . Input. Body. json ( request) )
55
+ let response = try await client. post_sol_alpha_sol_agents_sol_create ( body: Operations . post_sol_alpha_sol_agents_sol_create . Input. Body. json ( request) )
56
56
return try response. ok. body. json
57
57
}
58
58
59
59
public func createSession( request: Components . Schemas . CreateAgentSessionRequest ) async throws -> Components . Schemas . AgentSessionCreateResponse {
60
- let response = try await client. post_sol_agents_sol_session_sol_create ( body: Operations . post_sol_agents_sol_session_sol_create . Input. Body. json ( request) )
60
+ let response = try await client. post_sol_alpha_sol_agents_sol_session_sol_create ( body: Operations . post_sol_alpha_sol_agents_sol_session_sol_create . Input. Body. json ( request) )
61
61
return try response. ok. body. json
62
62
}
63
63
64
64
public func createTurn( request: Components . Schemas . CreateAgentTurnRequest ) async throws -> AsyncStream < Components . Schemas . AgentTurnResponseStreamChunk > {
65
65
return AsyncStream< Components . Schemas. AgentTurnResponseStreamChunk> { continuation in
66
66
Task {
67
67
do {
68
- let response = try await self . client. post_sol_agents_sol_turn_sol_create (
69
- body: Operations . post_sol_agents_sol_turn_sol_create . Input. Body. json ( request)
68
+ let response = try await self . client. post_sol_alpha_sol_agents_sol_turn_sol_create (
69
+ body: Operations . post_sol_alpha_sol_agents_sol_turn_sol_create . Input. Body. json ( request)
70
70
)
71
71
let stream = try response. ok. body. text_event_hyphen_stream. asDecodedServerSentEventsWithJSONData (
72
72
of: Components . Schemas. AgentTurnResponseStreamChunk. self
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ public class RemoteInference: Inference {
18
18
return AsyncStream< Components . Schemas. ChatCompletionResponseStreamChunk> { continuation in
19
19
Task {
20
20
do {
21
- let response = try await self . client. post_sol_inference_sol_chat_completion (
22
- body: Operations . post_sol_inference_sol_chat_completion . Input. Body. json ( request)
21
+ let response = try await self . client. post_sol_alpha_sol_inference_sol_chat_hyphen_completion (
22
+ body: Operations . post_sol_alpha_sol_inference_sol_chat_hyphen_completion . Input. Body. json ( request)
23
23
)
24
24
let stream = try response. ok. body. text_event_hyphen_stream. asDecodedServerSentEventsWithJSONData (
25
25
of: Components . Schemas. ChatCompletionResponseStreamChunk. self
You can’t perform that action at this time.
0 commit comments