-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Assistants Streaming #707
Conversation
…ient # Conflicts: # evaluator-example/src/main/kotlin/com/xebia/functional/xef/evaluator/examples/TestExample.kt
…o assistants-streaming-events
…ts-streaming-events # Conflicts: # core/src/commonMain/kotlin/com/xebia/functional/xef/AI.kt # core/src/commonMain/kotlin/com/xebia/functional/xef/Config.kt # core/src/commonMain/kotlin/com/xebia/functional/xef/llm/assistants/AssistantThread.kt # examples/src/main/kotlin/com/xebia/functional/xef/assistants/DSL.kt # examples/src/main/kotlin/com/xebia/functional/xef/assistants/LoadFromYamlConfig.kt # examples/src/main/kotlin/com/xebia/functional/xef/conversation/streaming/SpaceCraft.kt # examples/src/main/kotlin/com/xebia/functional/xef/dsl/chat/Classes.kt # examples/src/main/kotlin/com/xebia/functional/xef/dsl/images/ImagesExamples.kt # examples/src/main/resources/logback.xml # integrations/opentelemetry/src/main/kotlin/com/xebia/functional/xef/opentelemetry/OpenTelemetryAssistantState.kt # openai-client/client/build.gradle.kts # openai-client/client/src/commonMain/kotlin/com/xebia/functional/openai/StreamingOps.kt # openai-client/generator/config/model_oneof.mustache # openai-client/generator/src/main/java/ai/xef/openai/generator/KMMGeneratorConfig.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @raulraja. Only couple of nits, but they can be addressed afterwards.
core/src/commonMain/kotlin/com/xebia/functional/xef/llm/assistants/AssistantThread.kt
Outdated
Show resolved
Hide resolved
core/src/commonMain/kotlin/com/xebia/functional/xef/llm/assistants/AssistantThread.kt
Show resolved
Hide resolved
core/src/commonMain/kotlin/com/xebia/functional/xef/llm/assistants/RunDeltaEvent.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 LGTM!
I have tested this PR locally and everything works as expected
Enable assistant message deltas and streaming for other endpoints based on https://platform.openai.com/docs/api-reference/assistants-streaming