chore: generate
This commit is contained in:
parent
f7eeb08942
commit
71ec022b47
1 changed files with 1 additions and 3 deletions
|
|
@ -117,9 +117,7 @@ describe("request option precedence", () => {
|
||||||
dynamicResponse((input) =>
|
dynamicResponse((input) =>
|
||||||
Effect.gen(function* () {
|
Effect.gen(function* () {
|
||||||
const web = yield* HttpClientRequest.toWeb(input.request).pipe(Effect.orDie)
|
const web = yield* HttpClientRequest.toWeb(input.request).pipe(Effect.orDie)
|
||||||
expect(web.url).toBe(
|
expect(web.url).toBe("https://api.openai.test/v1/chat/completions?route=1&shared=model&model=1&request=1")
|
||||||
"https://api.openai.test/v1/chat/completions?route=1&shared=model&model=1&request=1",
|
|
||||||
)
|
|
||||||
expect(web.headers.get("authorization")).toBe("Bearer fresh-key")
|
expect(web.headers.get("authorization")).toBe("Bearer fresh-key")
|
||||||
expect(web.headers.get("x-route")).toBe("route")
|
expect(web.headers.get("x-route")).toBe("route")
|
||||||
expect(web.headers.get("x-model")).toBe("model")
|
expect(web.headers.get("x-model")).toBe("model")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue