Skip to content

FinishReason enum not compatible with OAI api #2296

Closed
@jondot

Description

@jondot

System Info

mac, stable rust, master version of TGI

Reproduction

Use the async-openai crate to make a call that ends on the server with eos_token (which doesn't exist in OAI API), you'll get

JSONDeserialize(Error("unknown variant eos_token, expected one of stop, length, tool_calls, content_filter, function_call", line: 1, column: 209))

Expected behavior

serialization should succeed with strict clients

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions