Skip to content

Sweep: Connection to openai via OPENAI_API_BASE doesn't seem to work #108

@kevin-littlejohn

Description

@kevin-littlejohn

Details

I believe there's a logic error in models.rs, where it creates a connection - if OPENAI_API_BASE is provided, it does not properly execute the connection to the specified server, instead it still creates a default openai connection. This means you can't use a local or self-hosted model. I think the logic is wrong in that it only reaches that block if the AZURE env variables are set, but I'm not confident in rust to say for sure.

Checklist
  • Modify src/models.rsabf0e54 Edit
  • Running GitHub Actions for src/models.rsEdit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions